drm/omap: displays: Don't call disconnect handlers directly
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 4 Aug 2018 19:10:44 +0000 (22:10 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Sep 2018 13:13:26 +0000 (16:13 +0300)
In preparation for the move of checks from the disconnect handlers to
the omapdss_device_disconnect() function, replace direct calls to the
disconnect handlers at remove time with calls to
omapdss_device_disconnect().

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
14 files changed:
drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c
drivers/gpu/drm/omapdrm/displays/connector-dvi.c
drivers/gpu/drm/omapdrm/displays/connector-hdmi.c
drivers/gpu/drm/omapdrm/displays/encoder-opa362.c
drivers/gpu/drm/omapdrm/displays/encoder-tfp410.c
drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c
drivers/gpu/drm/omapdrm/displays/panel-dpi.c
drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c
drivers/gpu/drm/omapdrm/displays/panel-lgphilips-lb035q02.c
drivers/gpu/drm/omapdrm/displays/panel-nec-nl8048hl11.c
drivers/gpu/drm/omapdrm/displays/panel-sharp-ls037v7dw01.c
drivers/gpu/drm/omapdrm/displays/panel-sony-acx565akm.c
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c
drivers/gpu/drm/omapdrm/displays/panel-tpo-td043mtea1.c

index d77e21f..fb5c4dc 100644 (file)
@@ -193,7 +193,7 @@ static int __exit tvc_remove(struct platform_device *pdev)
        omapdss_unregister_display(&ddata->dssdev);
 
        tvc_disable(dssdev);
-       tvc_disconnect(dssdev);
+       omapdss_device_disconnect(dssdev, NULL);
 
        return 0;
 }
index 9a3ecc3..e47214a 100644 (file)
@@ -420,7 +420,7 @@ static int __exit dvic_remove(struct platform_device *pdev)
        omapdss_unregister_display(&ddata->dssdev);
 
        dvic_disable(dssdev);
-       dvic_disconnect(dssdev);
+       omapdss_device_disconnect(dssdev, NULL);
 
        i2c_put_adapter(ddata->i2c_adapter);
 
index 665af99..671f2f2 100644 (file)
@@ -375,7 +375,7 @@ static int __exit hdmic_remove(struct platform_device *pdev)
        omapdss_unregister_display(&ddata->dssdev);
 
        hdmic_disable(dssdev);
-       hdmic_disconnect(dssdev);
+       omapdss_device_disconnect(dssdev, NULL);
 
        return 0;
 }
index 5b9ef09..5724bdf 100644 (file)
@@ -206,7 +206,7 @@ static int __exit opa362_remove(struct platform_device *pdev)
 
        WARN_ON(omapdss_device_is_connected(dssdev));
        if (omapdss_device_is_connected(dssdev))
-               opa362_disconnect(dssdev, dssdev->dst);
+               omapdss_device_disconnect(dssdev, dssdev->dst);
 
        return 0;
 }
index b22c8f7..d65fed2 100644 (file)
@@ -229,7 +229,7 @@ static int __exit tfp410_remove(struct platform_device *pdev)
 
        WARN_ON(omapdss_device_is_connected(dssdev));
        if (omapdss_device_is_connected(dssdev))
-               tfp410_disconnect(dssdev, dssdev->dst);
+               omapdss_device_disconnect(dssdev, dssdev->dst);
 
        return 0;
 }
index 640f15b..bdd9d39 100644 (file)
@@ -346,7 +346,7 @@ static int __exit tpd_remove(struct platform_device *pdev)
 
        WARN_ON(omapdss_device_is_connected(dssdev));
        if (omapdss_device_is_connected(dssdev))
-               tpd_disconnect(dssdev, dssdev->dst);
+               omapdss_device_disconnect(dssdev, dssdev->dst);
 
        return 0;
 }
index 5d704cf..4772cb2 100644 (file)
@@ -241,7 +241,7 @@ static int __exit panel_dpi_remove(struct platform_device *pdev)
        omapdss_unregister_display(dssdev);
 
        panel_dpi_disable(dssdev);
-       panel_dpi_disconnect(dssdev);
+       omapdss_device_disconnect(dssdev, NULL);
 
        return 0;
 }
index be6c0c8..443dc87 100644 (file)
@@ -1408,7 +1408,7 @@ static int __exit dsicm_remove(struct platform_device *pdev)
        omapdss_unregister_display(dssdev);
 
        dsicm_disable(dssdev);
-       dsicm_disconnect(dssdev);
+       omapdss_device_disconnect(dssdev, NULL);
 
        sysfs_remove_group(&pdev->dev.kobj, &dsicm_attr_group);
 
index 50b74e7..ea4cdc8 100644 (file)
@@ -292,7 +292,7 @@ static int lb035q02_panel_spi_remove(struct spi_device *spi)
        omapdss_unregister_display(dssdev);
 
        lb035q02_disable(dssdev);
-       lb035q02_disconnect(dssdev);
+       omapdss_device_disconnect(dssdev, NULL);
 
        return 0;
 }
index 769cba6..84e9c9a 100644 (file)
@@ -318,7 +318,7 @@ static int nec_8048_remove(struct spi_device *spi)
        omapdss_unregister_display(dssdev);
 
        nec_8048_disable(dssdev);
-       nec_8048_disconnect(dssdev);
+       omapdss_device_disconnect(dssdev, NULL);
 
        return 0;
 }
index 629ea2d..a6ec328 100644 (file)
@@ -292,7 +292,7 @@ static int __exit sharp_ls_remove(struct platform_device *pdev)
        omapdss_unregister_display(dssdev);
 
        sharp_ls_disable(dssdev);
-       sharp_ls_disconnect(dssdev);
+       omapdss_device_disconnect(dssdev, NULL);
 
        return 0;
 }
index 82797df..0a2efcb 100644 (file)
@@ -837,7 +837,7 @@ static int acx565akm_remove(struct spi_device *spi)
        omapdss_unregister_display(dssdev);
 
        acx565akm_disable(dssdev);
-       acx565akm_disconnect(dssdev);
+       omapdss_device_disconnect(dssdev, NULL);
 
        return 0;
 }
index 298fedf..8b5ee55 100644 (file)
@@ -419,7 +419,7 @@ static int td028ttec1_panel_remove(struct spi_device *spi)
        omapdss_unregister_display(dssdev);
 
        td028ttec1_panel_disable(dssdev);
-       td028ttec1_panel_disconnect(dssdev);
+       omapdss_device_disconnect(dssdev, NULL);
 
        return 0;
 }
index df3d810..263c566 100644 (file)
@@ -569,7 +569,7 @@ static int tpo_td043_remove(struct spi_device *spi)
        omapdss_unregister_display(dssdev);
 
        tpo_td043_disable(dssdev);
-       tpo_td043_disconnect(dssdev);
+       omapdss_device_disconnect(dssdev, NULL);
 
        sysfs_remove_group(&spi->dev.kobj, &tpo_td043_attr_group);