diff mbox series

drm/bridge: convert to use devm_platform_ioremap_resource()

Message ID 20250206071713.180471-1-oushixiong1025@163.com (mailing list archive)
State Accepted
Headers show
Series drm/bridge: convert to use devm_platform_ioremap_resource() | expand

Commit Message

Shixiong Ou Feb. 6, 2025, 7:17 a.m. UTC
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(-)

Comments

Maxime Ripard Feb. 6, 2025, 2:45 p.m. UTC | #1
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
Manikandan Muralidharan Feb. 7, 2025, 3:13 a.m. UTC | #2
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
Robert Foss Feb. 10, 2025, 12:48 p.m. UTC | #3
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
diff mbox series

Patch

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);