diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2020-03-08 23:38:07 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2020-03-12 10:26:02 +0100 |
commit | a858ac8f4033ee2375bfba4dc333f5c8a8ee996a (patch) | |
tree | 2ceb01608ec3553c3f43eb90132d756394e04b7b /drivers/gpu/drm/tegra | |
parent | Linux 5.6-rc1 (diff) | |
download | linux-a858ac8f4033ee2375bfba4dc333f5c8a8ee996a.tar.xz linux-a858ac8f4033ee2375bfba4dc333f5c8a8ee996a.zip |
drm/tegra: dc: Use devm_platform_ioremap_resource
The devm_platform_ioremap_resource() helper replaces few lines of a
boilerplate code with a single line, making code to look cleaner a tad.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra')
-rw-r--r-- | drivers/gpu/drm/tegra/dc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index 7c70fd31a4c2..257163dda301 100644 --- a/drivers/gpu/drm/tegra/dc.c +++ b/drivers/gpu/drm/tegra/dc.c @@ -2503,7 +2503,6 @@ static int tegra_dc_couple(struct tegra_dc *dc) static int tegra_dc_probe(struct platform_device *pdev) { - struct resource *regs; struct tegra_dc *dc; int err; @@ -2560,8 +2559,7 @@ static int tegra_dc_probe(struct platform_device *pdev) tegra_powergate_power_off(dc->powergate); } - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dc->regs = devm_ioremap_resource(&pdev->dev, regs); + dc->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dc->regs)) return PTR_ERR(dc->regs); |