return 0;
 }
 
-#ifdef CONFIG_PM_SLEEP
 static int tsl2563_suspend(struct device *dev)
 {
        struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev));
        return ret;
 }
 
-static SIMPLE_DEV_PM_OPS(tsl2563_pm_ops, tsl2563_suspend, tsl2563_resume);
-#define TSL2563_PM_OPS (&tsl2563_pm_ops)
-#else
-#define TSL2563_PM_OPS NULL
-#endif
+static DEFINE_SIMPLE_DEV_PM_OPS(tsl2563_pm_ops, tsl2563_suspend,
+                               tsl2563_resume);
 
 static const struct i2c_device_id tsl2563_id[] = {
        { "tsl2560", 0 },
        .driver = {
                .name    = "tsl2563",
                .of_match_table = tsl2563_of_match,
-               .pm     = TSL2563_PM_OPS,
+               .pm     = pm_sleep_ptr(&tsl2563_pm_ops),
        },
        .probe          = tsl2563_probe,
        .remove         = tsl2563_remove,