drm/panel: simple: Fix panel_simple_dsi_probe
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 26 Feb 2019 08:11:53 +0000 (10:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Aug 2019 07:33:36 +0000 (09:33 +0200)
commitd1b691125546c56b0e9c6eec19296fe3817bdb28
treecad4c82617f03ddaaaef8cbdda48a366a7a1ca35
parent7546e0c127b56e1ad75ad59fc1ebf8d44b6215ff
drm/panel: simple: Fix panel_simple_dsi_probe

[ Upstream commit 7ad9db66fafb0f0ad53fd2a66217105da5ddeffe ]

In case mipi_dsi_attach() fails remove the registered panel to avoid added
panel without corresponding device.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190226081153.31334-1-peter.ujfalusi@ti.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/panel/panel-simple.c