Hi Christopher,[snip]
On Thursday 22 December 2011 07:39 AM, Christopher Heiny wrote:Signed-off-by: Christopher Heiny<cheiny@xxxxxxxxxxxxx>
+#ifdef CONFIG_PMIf driver-pm- suspend is not there should you not fall back to . suspend ?
+static int rmi_bus_suspend(struct device *dev)
+{
+#ifdef GENERIC_SUBSYS_PM_OPS
+ const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
+
+ if (pm&& pm->suspend)
+ return pm->suspend(dev);
--
+#endifsame here?
+
+ return 0;
+}
+
+static int rmi_bus_resume(struct device *dev)
+{
+#ifdef GENERIC_SUBSYS_PM_OPS
+ const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
+
+ if (pm&& pm->resume)
+ return pm->resume(dev);
+#endif
+
+ return 0;
+}
+#endif