From patchwork Fri May 7 16:07:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benoit Cousson X-Patchwork-Id: 97768 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o47G7T15026329 for ; Fri, 7 May 2010 16:07:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756457Ab0EGQHX (ORCPT ); Fri, 7 May 2010 12:07:23 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:59907 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756918Ab0EGQHV (ORCPT ); Fri, 7 May 2010 12:07:21 -0400 Received: from dlep35.itg.ti.com ([157.170.170.118]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id o47G7KBi007587 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 7 May 2010 11:07:21 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by dlep35.itg.ti.com (8.13.7/8.13.7) with ESMTP id o47G75t0009811; Fri, 7 May 2010 11:07:17 -0500 (CDT) From: Benoit Cousson To: linux-omap@vger.kernel.org Cc: Rajendra Nayak Subject: [PATCH 6/6] OMAP: hwmod: Temp fixes to get hwmod registers work Date: Fri, 7 May 2010 18:07:04 +0200 Message-Id: <1273248424-15943-7-git-send-email-b-cousson@ti.com> X-Mailer: git-send-email 1.6.1.3 In-Reply-To: <1273248424-15943-1-git-send-email-b-cousson@ti.com> References: <1273248424-15943-1-git-send-email-b-cousson@ti.com> 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, 07 May 2010 16:07:30 +0000 (UTC) diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 302f2c8..9f7cb9f 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c @@ -524,6 +524,8 @@ static int _disable_clocks(struct omap_hwmod *oh) pr_debug("omap_hwmod: %s: disabling clocks\n", oh->name); + return 0; + if (oh->_clk) clk_disable(oh->_clk);