diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2017-12-18 14:02:26 +0100 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2018-02-18 11:14:58 +0100 |
commit | 64f1d1aa05224d58daa21648326e2070393fdb81 (patch) | |
tree | c9fd988441196dbec3310d6743303f90236f9afd /drivers/gpu/drm/rockchip | |
parent | Merge airlied/drm-next into drm-misc-next (diff) | |
download | linux-64f1d1aa05224d58daa21648326e2070393fdb81.tar.xz linux-64f1d1aa05224d58daa21648326e2070393fdb81.zip |
drm/rockchip: dsi: 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-3-git-send-email-festevam@gmail.com
Diffstat (limited to 'drivers/gpu/drm/rockchip')
-rw-r--r-- | drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c index b1fe0639227e..591953cbdd18 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c @@ -1202,9 +1202,6 @@ static int dw_mipi_dsi_bind(struct device *dev, struct device *master, return ret; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) - return -ENODEV; - dsi->base = devm_ioremap_resource(dev, res); if (IS_ERR(dsi->base)) return PTR_ERR(dsi->base); |