diff mbox

[PATCH:v4,12/13] OMAP: GPIO: Implement GPIO as a platform device

Message ID 87lja28z2l.fsf@deeprootsystems.com (mailing list archive)
State New, archived
Headers show

Commit Message

Kevin Hilman June 25, 2010, 11:36 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c
index 6dc5e4b..6a5a8f4 100644
--- a/arch/arm/plat-omap/gpio.c
+++ b/arch/arm/plat-omap/gpio.c
@@ -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,
 	},
 };