drm/rockchip: rgb: don't count non-existent devices when
From: Heiko Stuebner <heiko.stuebner@...> Date: Thu, 9 Jan 2020 21:44:49 +0100
Commit-Message
rockchip_drm_endpoint_is_subdriver() may also return error codes. For example if the target-node is in the disabled state, so no platform-device is getting created for it. In that case current code would count that as external rgb device, which in turn would make probing the rockchip-drm device fail. So only count the target as rgb device if the function actually returns 0. Signed-off-by: Heiko Stuebner <heiko.stuebner@...>
Patch-Comment
drivers/gpu/drm/rockchip/rockchip_rgb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Statistics
- 2 lines added
- 1 lines removed