diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2017-12-18 11:02:29 -0200 |
---|---|---|
committer | Benjamin Gaignard <benjamin.gaignard@linaro.org> | 2017-12-19 15:23:45 +0100 |
commit | eb393dbc8f5b2ca7c87749795fd49b8cf77ab04b (patch) | |
tree | c2c41c2a99c2cce7d743c05179b091aa9954b6ed /drivers/gpu/drm/stm | |
parent | 6cf7e40b5cf0d8de1ccec73cc9e6db8f0023ef8b (diff) | |
download | talos-obmc-linux-eb393dbc8f5b2ca7c87749795fd49b8cf77ab04b.tar.gz talos-obmc-linux-eb393dbc8f5b2ca7c87749795fd49b8cf77ab04b.zip |
drm/stm: ltdc: 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: Philippe Cornu <philippe.cornu@st.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Philippe Cornu <philippe.cornu@st.com>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1513602150-7542-6-git-send-email-festevam@gmail.com
Diffstat (limited to 'drivers/gpu/drm/stm')
-rw-r--r-- | drivers/gpu/drm/stm/ltdc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index 394613b0fd46..6dc5d4ec4e17 100644 --- a/drivers/gpu/drm/stm/ltdc.c +++ b/drivers/gpu/drm/stm/ltdc.c @@ -901,12 +901,6 @@ int ltdc_load(struct drm_device *ddev) } res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - DRM_ERROR("Unable to get resource\n"); - ret = -ENODEV; - goto err; - } - ldev->regs = devm_ioremap_resource(dev, res); if (IS_ERR(ldev->regs)) { DRM_ERROR("Unable to get ltdc registers\n"); |