diff mbox

generic runtime pm callbacks

Message ID AANLkTikJ5sSQzZ8XL_04_VqzKKPZBRHGtMAQvdz9bfOS@mail.gmail.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Ohad Ben Cohen Sept. 6, 2010, 12:32 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/base/power/generic_ops.c b/drivers/base/power/generic_ops.
index 304c831..531762a 100644
--- a/drivers/base/power/generic_ops.c
+++ b/drivers/base/power/generic_ops.c
@@ -49,7 +49,7 @@  int pm_generic_runtime_suspend(struct device *dev)
       const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
       int ret;

-       ret = pm && pm->runtime_suspend ? pm->runtime_suspend(dev) : -EINVAL;
+       ret = pm && pm->runtime_suspend ? pm->runtime_suspend(dev) : 0;

       return ret;
 }
@@ -68,7 +68,7 @@  int pm_generic_runtime_resume(struct device *dev)
       const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
       int ret;

-       ret = pm && pm->runtime_resume ? pm->runtime_resume(dev) : -EINVAL;
+       ret = pm && pm->runtime_resume ? pm->runtime_resume(dev) : 0;

       return ret;
 }