summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2017-12-18 14:02:27 +0100
committerHeiko Stuebner <heiko@sntech.de>2018-02-18 11:15:29 +0100
commita2fad8d1bdd31b21d37b38e6203f71af6e9b42ad (patch)
tree971126debecb0f647f3b8babe1d8ba3c90bb7c8d /drivers
parentdrm/rockchip: dsi: Remove unnecessary platform_get_resource() error check (diff)
downloadlinux-a2fad8d1bdd31b21d37b38e6203f71af6e9b42ad.tar.xz
linux-a2fad8d1bdd31b21d37b38e6203f71af6e9b42ad.zip
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 <heiko@sntech.de> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://patchwork.freedesktop.org/patch/msgid/1513602150-7542-4-git-send-email-festevam@gmail.com
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/rockchip/inno_hdmi.c3
1 files changed, 0 insertions, 3 deletions
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);