Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/rockchip: rk3066_hdmi: Use devm_platform_ioremap_resource() in rk3066_hdmi_bind()

Simplify this function implementation by using a known wrapper function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/0666bc0b-6624-21a0-47c4-b78e2a3b3ad5@web.de

authored by

Markus Elfring and committed by
Heiko Stuebner
9abdcff7 695379b3

+1 -7
+1 -7
drivers/gpu/drm/rockchip/rk3066_hdmi.c
··· 743 743 struct platform_device *pdev = to_platform_device(dev); 744 744 struct drm_device *drm = data; 745 745 struct rk3066_hdmi *hdmi; 746 - struct resource *iores; 747 746 int irq; 748 747 int ret; 749 748 ··· 752 753 753 754 hdmi->dev = dev; 754 755 hdmi->drm_dev = drm; 755 - 756 - iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); 757 - if (!iores) 758 - return -ENXIO; 759 - 760 - hdmi->regs = devm_ioremap_resource(dev, iores); 756 + hdmi->regs = devm_platform_ioremap_resource(pdev, 0); 761 757 if (IS_ERR(hdmi->regs)) 762 758 return PTR_ERR(hdmi->regs); 763 759