pm_runtime_disable(&pdev->dev);
 }
 
-#ifdef CONFIG_PM_SLEEP
 static int cqspi_suspend(struct device *dev)
 {
        struct cqspi_st *cqspi = dev_get_drvdata(dev);
        return spi_master_resume(master);
 }
 
-static const struct dev_pm_ops cqspi__dev_pm_ops = {
-       .suspend = cqspi_suspend,
-       .resume = cqspi_resume,
-};
-
-#define CQSPI_DEV_PM_OPS       (&cqspi__dev_pm_ops)
-#else
-#define CQSPI_DEV_PM_OPS       NULL
-#endif
+static DEFINE_SIMPLE_DEV_PM_OPS(cqspi_dev_pm_ops, cqspi_suspend, cqspi_resume);
 
 static const struct cqspi_driver_platdata cdns_qspi = {
        .quirks = CQSPI_DISABLE_DAC_MODE,
        .remove_new = cqspi_remove,
        .driver = {
                .name = CQSPI_NAME,
-               .pm = CQSPI_DEV_PM_OPS,
+               .pm = &cqspi_dev_pm_ops,
                .of_match_table = cqspi_dt_ids,
        },
 };