return 0;
 }
 
-static int __maybe_unused ina3221_suspend(struct device *dev)
+static int ina3221_suspend(struct device *dev)
 {
        struct ina3221_data *ina = dev_get_drvdata(dev);
        int ret;
        return 0;
 }
 
-static int __maybe_unused ina3221_resume(struct device *dev)
+static int ina3221_resume(struct device *dev)
 {
        struct ina3221_data *ina = dev_get_drvdata(dev);
        int ret;
        return 0;
 }
 
-static const struct dev_pm_ops ina3221_pm = {
-       SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
-                               pm_runtime_force_resume)
-       SET_RUNTIME_PM_OPS(ina3221_suspend, ina3221_resume, NULL)
-};
+static DEFINE_RUNTIME_DEV_PM_OPS(ina3221_pm, ina3221_suspend, ina3221_resume,
+                                NULL);
 
 static const struct of_device_id ina3221_of_match_table[] = {
        { .compatible = "ti,ina3221", },
        .driver = {
                .name = INA3221_DRIVER_NAME,
                .of_match_table = ina3221_of_match_table,
-               .pm = &ina3221_pm,
+               .pm = pm_ptr(&ina3221_pm),
        },
        .id_table = ina3221_ids,
 };