drm/bridge: analogix_dp: Use devm_platform_ioremap_resource()
Subsystems (3)
PATCH 1/1 drm/bridge: analogix_dp: Use devm_platform_ioremap_resource()
From: Shixiong Ou <[email protected]>
Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_ioremap_resource().
Signed-off-by Shixiong Ou <[email protected]>
--- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +1 -4
@@ -1553,7 +1553,6 @@ analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data) {struct platform_device *pdev =to_platform_device (dev);struct analogix_dp_device *dp; -struct resource *res;unsigned int irq_flags;int ret;
@@ -1605,9 +1604,7 @@ analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data)return ERR_CAST (dp->clock); } - res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); - - dp->reg_base =devm_ioremap_resource (&pdev->dev, res); + dp->reg_base =devm_platform_ioremap_resource (pdev,0 );if (IS_ERR (dp->reg_base)) { ret =PTR_ERR (dp->reg_base); goto err_disable_clk;
Signature · 1 line
2.43.0
Quoted 35 lines · On Tue, Jan 28, 2025 at 7:57 AM <[email protected]> wrote:
From: Shixiong Ou <[email protected]>
Convert
platform_get_resource(),devm_ioremap_resource()to a single call todevm_platform_ioremap_resource().Signed-off-by Shixiong Ou <[email protected]>--- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +1
-5@@ -1553,7 +1553,6 @@ analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data) {struct platform_device *pdev =to_platform_device (dev);struct analogix_dp_device *dp; -struct resource *res;unsigned int irq_flags;int ret;@@ -1605,9 +1604,7 @@ analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data)return ERR_CAST (dp->clock); } - res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); - - dp->reg_base =devm_ioremap_resource (&pdev->dev, res); + dp->reg_base =devm_platform_ioremap_resource (pdev,0 );if (IS_ERR (dp->reg_base)) { ret =PTR_ERR (dp->reg_base); goto err_disable_clk; --
Quoted 2 lines
2.43.0
Reviewed-by Robert Foss <[email protected]>
Quoted 4 lines · On Tue, 28 Jan 2025 14:56:45 +0800, [email protected] wrote:
Convert
platform_get_resource(),devm_ioremap_resource()to a single call todevm_platform_ioremap_resource().
Applied, thanks!
[1/1] drm/bridge: analogix_dp: Use devm_platform_ioremap_resource()
(no commit info)
Rob