mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 09:46:50 +07:00
drm/omap: displays: Don't call disconnect handlers directly
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>
This commit is contained in:
parent
1f507968c3
commit
73fc0ac4a6
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user