LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] drm/bridge: cdns: Make use of the helper function devm_platform_ioremap_resource()
@ 2021-08-31 13:50 ` Cai Huoqing
  2021-08-31 13:58   ` Andrzej Hajda
  0 siblings, 1 reply; 3+ messages in thread
From: Cai Huoqing @ 2021-08-31 13:50 UTC (permalink / raw)
  To: caihuoqing
  Cc: Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
	Jonas Karlman, Jernej Skrabec, David Airlie, Daniel Vetter,
	dri-devel, linux-kernel

Use the devm_platform_ioremap_resource() helper instead of
calling platform_get_resource() and devm_ioremap_resource()
separately

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
---
 drivers/gpu/drm/bridge/cdns-dsi.c | 4 +---
 1 file changed, 1 insertion(+), 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);
 
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/bridge: cdns: Make use of the helper function devm_platform_ioremap_resource()
  2021-08-31 13:50 ` [PATCH] drm/bridge: cdns: Make use of the helper function devm_platform_ioremap_resource() Cai Huoqing
@ 2021-08-31 13:58   ` Andrzej Hajda
  2021-08-31 14:25     ` Robert Foss
  0 siblings, 1 reply; 3+ messages in thread
From: Andrzej Hajda @ 2021-08-31 13:58 UTC (permalink / raw)
  To: Cai Huoqing
  Cc: Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
	Jernej Skrabec, David Airlie, Daniel Vetter, dri-devel,
	linux-kernel


W dniu 31.08.2021 o 15:50, Cai Huoqing pisze:
> Use the devm_platform_ioremap_resource() helper instead of
> calling platform_get_resource() and devm_ioremap_resource()
> separately
>
> Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>

Regards
Andrzej

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/bridge: cdns: Make use of the helper function devm_platform_ioremap_resource()
  2021-08-31 13:58   ` Andrzej Hajda
@ 2021-08-31 14:25     ` Robert Foss
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Foss @ 2021-08-31 14:25 UTC (permalink / raw)
  To: Andrzej Hajda
  Cc: Cai Huoqing, Neil Armstrong, Laurent Pinchart, Jonas Karlman,
	Jernej Skrabec, David Airlie, Daniel Vetter, dri-devel,
	linux-kernel

On Tue, 31 Aug 2021 at 15:58, Andrzej Hajda <a.hajda@samsung.com> wrote:
>
>
> W dniu 31.08.2021 o 15:50, Cai Huoqing pisze:
> > Use the devm_platform_ioremap_resource() helper instead of
> > calling platform_get_resource() and devm_ioremap_resource()
> > separately
> >
> > Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
> Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>

Applied to drm-misc-next.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-31 14:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20210831135143eucas1p1bc6f6a6ca587818c1bb036a64723577c@eucas1p1.samsung.com>
2021-08-31 13:50 ` [PATCH] drm/bridge: cdns: Make use of the helper function devm_platform_ioremap_resource() Cai Huoqing
2021-08-31 13:58   ` Andrzej Hajda
2021-08-31 14:25     ` Robert Foss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).