[PATCH] drm/bridge: convert to use devm_platform_ioremap_resource()

oushixiong1025@163.com posted 1 patch 10 months, 1 week ago
drivers/gpu/drm/bridge/microchip-lvds.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
[PATCH] drm/bridge: convert to use devm_platform_ioremap_resource()
Posted by oushixiong1025@163.com 10 months, 1 week ago
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
Re: [PATCH] drm/bridge: convert to use devm_platform_ioremap_resource()
Posted by Robert Foss 10 months, 1 week ago
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
Re: [PATCH] drm/bridge: convert to use devm_platform_ioremap_resource()
Posted by Maxime Ripard 10 months, 1 week ago
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
Re: [PATCH] drm/bridge: convert to use devm_platform_ioremap_resource()
Posted by Manikandan.M@microchip.com 10 months, 1 week ago
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.