aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/bridge/cdns-dsi.c
diff options
context:
space:
mode:
authorCai Huoqing <[email protected]>2021-08-31 13:50:47 +0000
committerRobert Foss <[email protected]>2021-08-31 14:24:00 +0000
commitd39491d86f506a1ce139a4289edb812724f200bf (patch)
treecb5f9e8250594cc33c9c91c7532c51e7d304ec64 /drivers/gpu/drm/bridge/cdns-dsi.c
parentdrm/bridge: it66121: Wait for next bridge to be probed (diff)
downloadkernel-d39491d86f506a1ce139a4289edb812724f200bf.tar.gz
kernel-d39491d86f506a1ce139a4289edb812724f200bf.zip
drm/bridge: cdns: Make use of the helper function devm_platform_ioremap_resource()
Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing <[email protected]> Reviewed-by: Andrzej Hajda <[email protected]> Signed-off-by: Robert Foss <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/bridge/cdns-dsi.c')
-rw-r--r--drivers/gpu/drm/bridge/cdns-dsi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/bridge/cdns-dsi.c b/drivers/gpu/drm/bridge/cdns-dsi.c
index e6e331071a00..d8a15c459b42 100644
--- a/drivers/gpu/drm/bridge/cdns-dsi.c
+++ b/drivers/gpu/drm/bridge/cdns-dsi.c
@@ -1171,7 +1171,6 @@ static int cdns_dsi_drm_probe(struct platform_device *pdev)
{
struct cdns_dsi *dsi;
struct cdns_dsi_input *input;
- struct resource *res;
int ret, irq;
u32 val;
@@ -1183,8 +1182,7 @@ static int cdns_dsi_drm_probe(struct platform_device *pdev)
input = &dsi->input;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- dsi->regs = devm_ioremap_resource(&pdev->dev, res);
+ dsi->regs = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(dsi->regs))
return PTR_ERR(dsi->regs);