From patchwork Tue Feb 16 08:27:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 79540 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 o1G8RRYh024159 for ; Tue, 16 Feb 2010 08:27:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755220Ab0BPI1Z (ORCPT ); Tue, 16 Feb 2010 03:27:25 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:53731 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753248Ab0BPI1Y (ORCPT ); Tue, 16 Feb 2010 03:27:24 -0500 Received: from dlep36.itg.ti.com ([157.170.170.91]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id o1G8RMFF031503 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Feb 2010 02:27:22 -0600 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id o1G8RJmn009098; Tue, 16 Feb 2010 02:27:19 -0600 (CST) Received: from senorita (senorita.am.dhcp.ti.com [128.247.75.1]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o1G8RJZ04668; Tue, 16 Feb 2010 02:27:19 -0600 (CST) Received: by senorita (Postfix, from userid 1000) id 155D2C212; Tue, 16 Feb 2010 02:27:18 -0600 (CST) From: Nishanth Menon To: Linux-OMAP Cc: Nishanth Menon , Ambresh K , Eduardo Valentin , Kevin Hilman Subject: [PM-WIP-OPP] [PATCH 2/2] omap: opp: return error pointers if inactive opp layer Date: Tue, 16 Feb 2010 02:27:17 -0600 Message-Id: <1266308837-23262-3-git-send-email-nm@ti.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1266308837-23262-2-git-send-email-nm@ti.com> References: <1266308837-23262-1-git-send-email-nm@ti.com> <1266308837-23262-2-git-send-email-nm@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]); Tue, 16 Feb 2010 08:27:27 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/plat/opp.h b/arch/arm/plat-omap/include/plat/opp.h index 33d224c..dc9a0d9 100644 --- a/arch/arm/plat-omap/include/plat/opp.h +++ b/arch/arm/plat-omap/include/plat/opp.h @@ -252,31 +252,31 @@ static inline int opp_get_opp_count(struct omap_opp *oppl) static inline struct omap_opp *opp_find_freq_exact(struct omap_opp *oppl, unsigned long freq, bool enabled) { - return NULL; + return ERR_PTR(-EINVAL); } static inline struct omap_opp *opp_find_freq_floor(struct omap_opp *oppl, unsigned long *freq) { - return NULL; + return ERR_PTR(-EINVAL); } static inline struct omap_opp *opp_find_freq_ceil(struct omap_opp *oppl, unsigned long *freq) { - return NULL; + return ERR_PTR(-EINVAL); } static inline struct omap_opp __init *opp_init_list(const struct omap_opp_def *opp_defs) { - return NULL; + return ERR_PTR(-EINVAL); } static inline struct omap_opp *opp_add(struct omap_opp *oppl, const struct omap_opp_def *opp_def) { - return NULL; + return ERR_PTR(-EINVAL); } static inline int opp_enable(struct omap_opp *opp) @@ -292,7 +292,7 @@ static inline int opp_disable(struct omap_opp *opp) static inline struct omap_opp * __deprecated opp_find_by_opp_id(struct omap_opp *opps, u8 opp_id) { - return NULL; + return ERR_PTR(-EINVAL); } static inline u8 __deprecated opp_get_opp_id(struct omap_opp *opp)