From: Fabio Estevam Date: Mon, 18 Dec 2017 13:02:27 +0000 (-0200) Subject: drm/rockchip: inno_hdmi: Remove unnecessary platform_get_resource() error check X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a2fad8d1bdd31b21d37b38e6203f71af6e9b42ad;p=openwrt%2Fstaging%2Fblogic.git drm/rockchip: inno_hdmi: Remove unnecessary platform_get_resource() error check devm_ioremap_resource() already checks if the resource is NULL, so remove the unnecessary platform_get_resource() error check. Cc: Heiko Stübner Signed-off-by: Fabio Estevam Signed-off-by: Heiko Stuebner Link: https://patchwork.freedesktop.org/patch/msgid/1513602150-7542-4-git-send-email-festevam@gmail.com --- diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c index fab30927a889..f6ad48766d49 100644 --- a/drivers/gpu/drm/rockchip/inno_hdmi.c +++ b/drivers/gpu/drm/rockchip/inno_hdmi.c @@ -831,9 +831,6 @@ static int inno_hdmi_bind(struct device *dev, struct device *master, hdmi->drm_dev = drm; iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!iores) - return -ENXIO; - hdmi->regs = devm_ioremap_resource(dev, iores); if (IS_ERR(hdmi->regs)) return PTR_ERR(hdmi->regs);