LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] drm/imx: imx-tve: Make use of the helper function devm_platform_ioremap_resource()
@ 2021-08-31 13:55 Cai Huoqing
2021-09-01 6:58 ` Philipp Zabel
0 siblings, 1 reply; 2+ messages in thread
From: Cai Huoqing @ 2021-08-31 13:55 UTC (permalink / raw)
To: caihuoqing
Cc: Philipp Zabel, David Airlie, Daniel Vetter, Shawn Guo,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
NXP Linux Team, dri-devel, linux-arm-kernel, 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/imx/imx-tve.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/imx/imx-tve.c b/drivers/gpu/drm/imx/imx-tve.c
index bc8c3f802a15..2b1fdf2cbbce 100644
--- a/drivers/gpu/drm/imx/imx-tve.c
+++ b/drivers/gpu/drm/imx/imx-tve.c
@@ -526,7 +526,6 @@ static int imx_tve_probe(struct platform_device *pdev)
struct device_node *np = dev->of_node;
struct device_node *ddc_node;
struct imx_tve *tve;
- struct resource *res;
void __iomem *base;
unsigned int val;
int irq;
@@ -568,8 +567,7 @@ static int imx_tve_probe(struct platform_device *pdev)
}
}
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base = devm_ioremap_resource(dev, res);
+ base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(base))
return PTR_ERR(base);
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/imx: imx-tve: Make use of the helper function devm_platform_ioremap_resource()
2021-08-31 13:55 [PATCH] drm/imx: imx-tve: Make use of the helper function devm_platform_ioremap_resource() Cai Huoqing
@ 2021-09-01 6:58 ` Philipp Zabel
0 siblings, 0 replies; 2+ messages in thread
From: Philipp Zabel @ 2021-09-01 6:58 UTC (permalink / raw)
To: Cai Huoqing
Cc: David Airlie, Daniel Vetter, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
dri-devel, linux-arm-kernel, linux-kernel
Hi Cai,
On Tue, 2021-08-31 at 21:55 +0800, Cai Huoqing wrote:
> 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>
Thank you, applied to imx-drm/next.
regards
Philipp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-01 6:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-31 13:55 [PATCH] drm/imx: imx-tve: Make use of the helper function devm_platform_ioremap_resource() Cai Huoqing
2021-09-01 6:58 ` Philipp Zabel
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).