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)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitb93783e380a989ae7c4b015d000dab5b84a2834d
tree9a9aafc25bafd70b5a80d977e146cb151ee2732e
parent21a2a42025002a50f7b2d68345bfd0d9418482ec
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