From: Fabio Estevam Date: Mon, 18 Dec 2017 13:02:26 +0000 (-0200) Subject: drm/rockchip: dsi: Remove unnecessary platform_get_resource() error check X-Git-Tag: v4.19~298^2~45^2~466 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64f1d1aa05224d58daa21648326e2070393fdb81;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Fabio Estevam Signed-off-by: Heiko Stuebner Link: https://patchwork.freedesktop.org/patch/msgid/1513602150-7542-3-git-send-email-festevam@gmail.com --- diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c index b1fe063..591953c 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);