Skip to content

Commit aaad45c

Browse files
Shixiong Ourobertfoss
authored andcommitted
drm/bridge: convert to use devm_platform_ioremap_resource()
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> Reviewed-and-tested-by: Dharma Balasubiramani <dharma.b@microchip.com> Reviewed-by: Dharma Balasubiramani <dharma.b@microchip.com> Tested-by: Dharma Balasubiramani <dharma.b@microchip.com> Signed-off-by: Robert Foss <rfoss@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20250206071713.180471-1-oushixiong1025@163.com
1 parent 0678c15 commit aaad45c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/gpu/drm/bridge/microchip-lvds.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ static int mchp_lvds_probe(struct platform_device *pdev)
162162

163163
lvds->dev = dev;
164164

165-
lvds->regs = devm_ioremap_resource(lvds->dev,
166-
platform_get_resource(pdev, IORESOURCE_MEM, 0));
165+
lvds->regs = devm_platform_ioremap_resource(pdev, 0);
167166
if (IS_ERR(lvds->regs))
168167
return PTR_ERR(lvds->regs);
169168

0 commit comments

Comments
 (0)