mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
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
This commit is contained in:
parent
0678c15b94
commit
aaad45cfaa
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user