]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
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 d77e21fc26ad16c203a43c1a48813509edf6ba2a..fb5c4dcafa2db6d31e3ba10785730ec4715d170c 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 9a3ecc3ed5b2f57f7f0a711243a9e9ebf2bba5df..e47214a121189521837c0e088e394d2e7e5c35d7 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 665af9932317572e06b5ed112cbc0eb8c391c389..671f2f29c8d3a09b1389597b82e45720a35fc789 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 5b9ef09e6b2d757d80974eb7e9be214ffd3a75f1..5724bdf53a4280380d04bde9d78e9fab439dd888 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 b22c8f71c0e573e3b5d71a473e837f9f68a93dbc..d65fed251b133407cbf10a20c8835509ace11ad0 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 640f15b8846725daaf2505a1b2eeba036f32d6bd..bdd9d39215a441bd76aed9d4a4ff328452cd2bea 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 5d704cf0809fd5a28e61aa5c93aac86b74a04e19..4772cb2553f2ea10f00aeada2e96d5084e1849ba 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 be6c0c811e66df3e9637349e5465eb641049f86c..443dc874e448963c78958141c13ea56948fc14a8 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 50b74e7351e91534023acf3fa6b26291862b2543..ea4cdc8bd2f81a72b417d6c058b3bdcb1978ab16 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 769cba6c99ef7bbea76d978aee5c09d20abe5534..84e9c9a8a56613aa82bc45ed21a9daca8fe356cc 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 629ea2d935751921990b0f77522ed8caccc79d00..a6ec328ee3d3c4662a7a568123d090632f48e3b2 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 82797df80e66bfecb3dc622da69c046eadff2614..0a2efcb845323edba274efce6e56ca9f733fd46f 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 298fedf96efe89015566e18e5e4367dc28e73e27..8b5ee55982f4dd7b61b326fbe76cf87e164aac05 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 df3d8103823da942a391ad76d5d45073579d5e65..263c566df4994157abef90a82016349f98c88ca7 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);