linux-stable/drivers/gpu/drm/shmobile
YueHaibing f91096e2f8 drm/shmob: Fix return value check in shmob_drm_probe
[ Upstream commit 06c3bbd3c1 ]

In case of error, the function devm_ioremap_resource() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().

Fixes: 8f1597c8f1 ("drm: shmobile: Perform initialization/cleanup at probe/remove time")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:50:12 +01:00
..
Kconfig drm: shmobile: remove unused MERAM support 2018-05-14 15:47:30 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
shmob_drm_backlight.c
shmob_drm_backlight.h
shmob_drm_crtc.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
shmob_drm_crtc.h drm: shmobile: remove unused MERAM support 2018-05-14 15:47:30 +02:00
shmob_drm_drv.c drm/shmob: Fix return value check in shmob_drm_probe 2020-01-27 14:50:12 +01:00
shmob_drm_drv.h drm: shmobile: remove unused MERAM support 2018-05-14 15:47:30 +02:00
shmob_drm_kms.c drm: shmobile: remove unused MERAM support 2018-05-14 15:47:30 +02:00
shmob_drm_kms.h drm: shmobile: remove unused MERAM support 2018-05-14 15:47:30 +02:00
shmob_drm_plane.c drm: shmobile: remove unused MERAM support 2018-05-14 15:47:30 +02:00
shmob_drm_plane.h
shmob_drm_regs.h