@@ -415,6 +415,13 @@ static int rockchip_dp_resume(struct device *dev)
}
#endif
+static void rockchip_dp_shutdown(struct platform_device *pdev)
+{
+ struct rockchip_dp_device *dp = dev_get_drvdata(&pdev->dev);
+
+ analogix_dp_shutdown(dp->adp);
+}
+
static const struct dev_pm_ops rockchip_dp_pm_ops = {
#ifdef CONFIG_PM_SLEEP
.suspend = rockchip_dp_suspend,
@@ -446,6 +453,7 @@ MODULE_DEVICE_TABLE(of, rockchip_dp_dt_ids);
struct platform_driver rockchip_dp_driver = {
.probe = rockchip_dp_probe,
.remove = rockchip_dp_remove,
+ .shutdown = rockchip_dp_shutdown,
.driver = {
.name = "rockchip-dp",
.pm = &rockchip_dp_pm_ops,