From patchwork Fri Jun 25 23:36:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 108199 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o5PNaOxS003486 for ; Fri, 25 Jun 2010 23:36:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755703Ab0FYXgW (ORCPT ); Fri, 25 Jun 2010 19:36:22 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:50822 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751245Ab0FYXgW (ORCPT ); Fri, 25 Jun 2010 19:36:22 -0400 Received: by pvg2 with SMTP id 2so1080708pvg.19 for ; Fri, 25 Jun 2010 16:36:21 -0700 (PDT) Received: by 10.142.67.34 with SMTP id p34mr1874230wfa.335.1277508981500; Fri, 25 Jun 2010 16:36:21 -0700 (PDT) Received: from localhost (c-24-18-179-55.hsd1.wa.comcast.net [24.18.179.55]) by mx.google.com with ESMTPS id e32sm575590wfj.15.2010.06.25.16.36.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 25 Jun 2010 16:36:20 -0700 (PDT) From: Kevin Hilman To: Charulatha V Cc: linux-omap@vger.kernel.org, paul@pwsan.com, tony@atomide.com, rnayak@ti.com, p-basak2@ti.com, b-cousson@ti.com Subject: Re: [PATCH:v4 12/13] OMAP: GPIO: Implement GPIO as a platform device Organization: Deep Root Systems, LLC References: <1277218916-15213-1-git-send-email-charu@ti.com> <1277218916-15213-2-git-send-email-charu@ti.com> <1277218916-15213-3-git-send-email-charu@ti.com> <1277218916-15213-4-git-send-email-charu@ti.com> <1277218916-15213-5-git-send-email-charu@ti.com> <1277218916-15213-6-git-send-email-charu@ti.com> <1277218916-15213-7-git-send-email-charu@ti.com> <1277218916-15213-8-git-send-email-charu@ti.com> <1277218916-15213-9-git-send-email-charu@ti.com> <1277218916-15213-10-git-send-email-charu@ti.com> <1277218916-15213-11-git-send-email-charu@ti.com> <1277218916-15213-12-git-send-email-charu@ti.com> <1277218916-15213-13-git-send-email-charu@ti.com> Date: Fri, 25 Jun 2010 16:36:18 -0700 In-Reply-To: <1277218916-15213-13-git-send-email-charu@ti.com> (Charulatha V.'s message of "Tue, 22 Jun 2010 20:31:55 +0530") Message-ID: <87lja28z2l.fsf@deeprootsystems.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 25 Jun 2010 23:36:24 +0000 (UTC) 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, }, };