From patchwork Thu Mar 24 17:53:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: manjugk manjugk X-Patchwork-Id: 659621 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2OHro7b020291 for ; Thu, 24 Mar 2011 17:53:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754049Ab1CXRxs (ORCPT ); Thu, 24 Mar 2011 13:53:48 -0400 Received: from na3sys009aog106.obsmtp.com ([74.125.149.77]:59401 "EHLO na3sys009aog106.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751489Ab1CXRxs (ORCPT ); Thu, 24 Mar 2011 13:53:48 -0400 Received: from source ([209.85.214.176]) (using TLSv1) by na3sys009aob106.postini.com ([74.125.148.12]) with SMTP ID DSNKTYuFKrVTciQoobqnE6UYqqm2I/gx5JZt@postini.com; Thu, 24 Mar 2011 10:53:47 PDT Received: by iwr19 with SMTP id 19so246633iwr.21 for ; Thu, 24 Mar 2011 10:53:46 -0700 (PDT) Received: by 10.42.161.200 with SMTP id u8mr6104611icx.500.1300989226296; Thu, 24 Mar 2011 10:53:46 -0700 (PDT) Received: from manju-desktop ([117.192.81.93]) by mx.google.com with ESMTPS id 19sm74416ibx.35.2011.03.24.10.53.39 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Mar 2011 10:53:44 -0700 (PDT) Date: Thu, 24 Mar 2011 23:23:24 +0530 From: "G, Manjunath Kondaiah" To: Paul Walmsley Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, khilman@ti.com, tony@atomide.com Subject: Re: [PATCH v3 1/4] OMAP2+: PM: omap device: API's for handling mstandby mode Message-ID: <20110324175324.GA1738@manju-desktop> References: <1300930219-23160-1-git-send-email-manjugk@ti.com> <1300930219-23160-2-git-send-email-manjugk@ti.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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.6 (demeter1.kernel.org [140.211.167.41]); Thu, 24 Mar 2011 17:53:50 +0000 (UTC) diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c index b502098..257c835 100644 --- a/arch/arm/plat-omap/omap_device.c +++ b/arch/arm/plat-omap/omap_device.c @@ -651,9 +651,8 @@ int omap_device_require_no_mstandby(struct platform_device *pdev) return -EINVAL; } - oh = *od->hwmods; for (i = 0; i < od->hwmods_cnt; i++) - ret = omap_hwmod_set_master_standbymode(oh, true); + ret = omap_hwmod_set_master_standbymode(od->hwmods[i], true); return ret; } @@ -684,9 +683,8 @@ int omap_device_release_no_mstandby(struct platform_device *pdev) return -EINVAL; } - oh = *od->hwmods; for (i = 0; i < od->hwmods_cnt; i++) - ret = omap_hwmod_set_master_standbymode(oh, false); + ret = omap_hwmod_set_master_standbymode(od->hwmods[i], false); return ret; }