@@ -2091,10 +2091,44 @@ void omap_gpio_restore_context(void)
}
#endif
+static int gpio_bank_suspend(struct device *dev)
+{
+ return 0;
+}
+
+static int gpio_bank_resume(struct device *dev)
+{
+ return 0;
+}
+
+static int gpio_bank_runtime_idle(struct device *dev)
+{
+ return 0;
+}
+
+static int gpio_bank_runtime_suspend(struct device *dev)
+{
+ return 0;
+}
+
+static int gpio_bank_runtime_resume(struct device *dev)
+{
+ return 0;
+}
+
+static struct dev_pm_ops gpio_pm_ops = {
+ .suspend = gpio_bank_suspend,
+ .resume = gpio_bank_resume,
+ .runtime_idle = gpio_bank_runtime_idle,
+ .runtime_suspend = gpio_bank_runtime_suspend,
+ .runtime_resume = gpio_bank_runtime_resume,
+};
+
static struct platform_driver omap_gpio_driver = {
.probe = omap_gpio_probe,
.driver = {
.name = "omap-gpio",
+ .pm = &gpio_pm_ops,
},
};