of_device_get_match_data(&pdev->dev), NULL);
}
-static const struct dev_pm_ops renesas_sdhi_sys_dmac_dev_pm_ops = {
- SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
- pm_runtime_force_resume)
- SET_RUNTIME_PM_OPS(tmio_mmc_host_runtime_suspend,
- tmio_mmc_host_runtime_resume,
- NULL)
-};
+static DEFINE_RUNTIME_DEV_PM_OPS(renesas_sdhi_sys_dmac_dev_pm_ops,
+ tmio_mmc_host_runtime_suspend,
+ tmio_mmc_host_runtime_resume, NULL);
static struct platform_driver renesas_sys_dmac_sdhi_driver = {
.driver = {
.name = "sh_mobile_sdhi",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
- .pm = &renesas_sdhi_sys_dmac_dev_pm_ops,
+ .pm = pm_ptr(&renesas_sdhi_sys_dmac_dev_pm_ops),
.of_match_table = renesas_sdhi_sys_dmac_of_match,
},
.probe = renesas_sdhi_sys_dmac_probe,