diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2017-12-18 16:02:27 +0300 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2018-02-18 13:15:29 +0300 |
commit | a2fad8d1bdd31b21d37b38e6203f71af6e9b42ad (patch) | |
tree | 971126debecb0f647f3b8babe1d8ba3c90bb7c8d /drivers/gpu/drm/rockchip | |
parent | 64f1d1aa05224d58daa21648326e2070393fdb81 (diff) | |
download | linux-a2fad8d1bdd31b21d37b38e6203f71af6e9b42ad.tar.xz |
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/gpu/drm/rockchip')
-rw-r--r-- | drivers/gpu/drm/rockchip/inno_hdmi.c | 3 |
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); |