lkml.org 
[lkml]   [2023]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 05/18] drm/tegra: hdmi: Convert to devm_platform_ioremap_resource()
    Date
    Use devm_platform_ioremap_resource() to simplify code.

    Signed-off-by: Yangtao Li <frank.li@vivo.com>
    ---
    drivers/gpu/drm/tegra/hdmi.c | 4 +---
    1 file changed, 1 insertion(+), 3 deletions(-)

    diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c
    index 6eac54ae1205..f3a44ca87151 100644
    --- a/drivers/gpu/drm/tegra/hdmi.c
    +++ b/drivers/gpu/drm/tegra/hdmi.c
    @@ -1769,7 +1769,6 @@ static irqreturn_t tegra_hdmi_irq(int irq, void *data)
    static int tegra_hdmi_probe(struct platform_device *pdev)
    {
    struct tegra_hdmi *hdmi;
    - struct resource *regs;
    int err;

    hdmi = devm_kzalloc(&pdev->dev, sizeof(*hdmi), GFP_KERNEL);
    @@ -1831,8 +1830,7 @@ static int tegra_hdmi_probe(struct platform_device *pdev)
    if (err < 0)
    return err;

    - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
    - hdmi->regs = devm_ioremap_resource(&pdev->dev, regs);
    + hdmi->regs = devm_platform_ioremap_resource(pdev, 0);
    if (IS_ERR(hdmi->regs))
    return PTR_ERR(hdmi->regs);

    --
    2.39.0
    \
     
     \ /
      Last update: 2023-07-07 09:21    [W:4.199 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site