MLK-17275-3: drm/bridge: nwl-dsi: Fix remove/detach
authorRobert Chiras <robert.chiras@nxp.com>
Thu, 21 Dec 2017 09:06:44 +0000 (11:06 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:52:42 +0000 (14:52 -0500)
commit7743d3cab9f5ec5d365108bf2505e6f21ff9a367
tree42c4dce73efff899b98ef740481bb338e1e5b308
parentbf649035ddab1b7bee3100aef320c344d3b3763d
MLK-17275-3: drm/bridge: nwl-dsi: Fix remove/detach

Add a check in detach function, so that the mipi_dsi_host_unregister
will occur only if the host was registered.
Also, remove the unnecessary calls to host_unregister from probe and
remove functions.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/bridge/nwl-dsi.c