drm/bridge/synopsys: dsi: move mipi_dsi_host_unregister

A patch from »drm/rockchip: migrate to common dw-mipi-dsi bridge and dual-dsi« in state Maintainer-tree for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Tue, 5 Jun 2018 11:05:58 +0200


Right now the host is only unregistered when the driver is used via the bridge api and not via the component api, leading to the host staying registered in cases like probe deferral. So move the host unregister to the general remove function, so that it gets cleaned up in all cases. Signed-off-by: Heiko Stuebner <heiko@...> Reviewed-by: Andrzej Hajda <a.hajda@...> Reviewed-by: Philippe Cornu <philippe.cornu@...> Tested-by: Philippe Cornu <philippe.cornu@...>


drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)


  • 2 lines added
  • 2 lines removed


---------------- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c -----------------
index fd7999642cf8..07cde255cab2 100644
@@ -941,6 +941,8 @@ __dw_mipi_dsi_probe(struct platform_device *pdev,
static void __dw_mipi_dsi_remove(struct dw_mipi_dsi *dsi)
+ mipi_dsi_host_unregister(&dsi->dsi_host);
@@ -957,8 +959,6 @@ EXPORT_SYMBOL_GPL(dw_mipi_dsi_probe);
void dw_mipi_dsi_remove(struct dw_mipi_dsi *dsi)
- mipi_dsi_host_unregister(&dsi->dsi_host);

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.