drivers/gpu/drm/bridge/microchip-lvds.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
From: Shixiong Ou <oushixiong@kylinos.cn>
convert to use devm_platform_ioremap_resource().
Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn>
---
drivers/gpu/drm/bridge/microchip-lvds.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/bridge/microchip-lvds.c b/drivers/gpu/drm/bridge/microchip-lvds.c
index b8313dad6072..53dd140a1b8d 100644
--- a/drivers/gpu/drm/bridge/microchip-lvds.c
+++ b/drivers/gpu/drm/bridge/microchip-lvds.c
@@ -162,8 +162,7 @@ static int mchp_lvds_probe(struct platform_device *pdev)
lvds->dev = dev;
- lvds->regs = devm_ioremap_resource(lvds->dev,
- platform_get_resource(pdev, IORESOURCE_MEM, 0));
+ lvds->regs = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(lvds->regs))
return PTR_ERR(lvds->regs);
--
2.25.1
On Thu, 06 Feb 2025 15:17:13 +0800, oushixiong1025@163.com wrote:
> convert to use devm_platform_ioremap_resource().
>
>
Applied, thanks!
[1/1] drm/bridge: convert to use devm_platform_ioremap_resource()
https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/aaad45cfaa1b
Rob
On Thu, 6 Feb 2025 15:17:13 +0800, oushixiong1025@163.com wrote: > From: Shixiong Ou <oushixiong@kylinos.cn> > > convert to use devm_platform_ioremap_resource(). > > Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn> > > [ ... ] Reviewed-by: Maxime Ripard <mripard@kernel.org> Thanks! Maxime
On 06/02/25 8:15 pm, Maxime Ripard wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > On Thu, 6 Feb 2025 15:17:13 +0800, oushixiong1025@163.com wrote: >> From: Shixiong Ou <oushixiong@kylinos.cn> >> >> convert to use devm_platform_ioremap_resource(). >> >> Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn> >> >> [ ... ] > > Reviewed-by: Maxime Ripard <mripard@kernel.org> Acked-by: Manikandan Muralidharan <manikandan.m@microchip.com> > > Thanks! > Maxime -- Thanks and Regards, Manikandan M.
© 2016 - 2025 Red Hat, Inc.