SDIO:starfive:modify SDIO/EMMC runtime PM callback function
authorWilliam Qiu <william.qiu@starfivetech.com>
Tue, 25 Oct 2022 02:39:46 +0000 (10:39 +0800)
committermason.huo <mason.huo@starfivetech.com>
Thu, 27 Oct 2022 05:57:27 +0000 (13:57 +0800)
modify SDIO/EMMC runtime PM callback function.

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
drivers/mmc/host/dw_mmc-starfive.c

index ee44a5fea5b0e703a14f1f363bf7cb1d8be4e213..0cb0bab5fc97888afe8036b004c62d356d77ace7 100644 (file)
@@ -266,9 +266,12 @@ static int dw_mci_starfive_runtime_resume(struct device *dev)
 }
 #endif
 
-static UNIVERSAL_DEV_PM_OPS(dw_mci_starfive_pm_ops,
-                               dw_mci_starfive_runtime_suspend,
-                               dw_mci_starfive_runtime_resume, NULL);
+static const struct dev_pm_ops dw_mci_starfive_pm_ops = {
+       SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
+                               pm_runtime_force_resume)
+       SET_RUNTIME_PM_OPS(dw_mci_starfive_runtime_suspend,
+                          dw_mci_starfive_runtime_resume, NULL)
+};
 
 static struct platform_driver dw_mci_starfive_driver = {
        .probe = dw_mci_starfive_probe,