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)
committerThierry Reding <treding@nvidia.com>
Tue, 23 Apr 2019 11:56:46 +0000 (13:56 +0200)
commit7ad9db66fafb0f0ad53fd2a66217105da5ddeffe
tree5e1018accc03cda3579c3c9582b4ebf4924373cb
parentb97b042a5029e59c7f06fbc3aecda53b8eb683b0
drm/panel: simple: Fix panel_simple_dsi_probe

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
drivers/gpu/drm/panel/panel-simple.c