From patchwork Fri Jan 4 19:31:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pantelis Antoniou X-Patchwork-Id: 1934501 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id D9A63402E1 for ; Fri, 4 Jan 2013 19:31:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754824Ab3ADTba (ORCPT ); Fri, 4 Jan 2013 14:31:30 -0500 Received: from li42-95.members.linode.com ([209.123.162.95]:37578 "EHLO li42-95.members.linode.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754552Ab3ADTb2 (ORCPT ); Fri, 4 Jan 2013 14:31:28 -0500 Received: from sles11esa.localdomain (unknown [195.97.110.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: panto) by li42-95.members.linode.com (Postfix) with ESMTPSA id AE4AD9C1D1; Fri, 4 Jan 2013 19:31:23 +0000 (UTC) From: Pantelis Antoniou Cc: Grant Likely , Rob Herring , Rob Landley , Jon Loeliger , Tony Lindgren , Stephen Warren , David Gibson , Benoit Cousson , Mitch Bradley , Alan Tull , linux-omap@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Matt Porter , Russ Dill , Koen Kooi , Joel A Fernandes , Rob Clark , Jason Kridner , Matt Ranostay , Pantelis Antoniou Subject: [PATCH 2/6] OF: export of_property_notify Date: Fri, 4 Jan 2013 21:31:06 +0200 Message-Id: <1357327870-13615-3-git-send-email-panto@antoniou-consulting.com> X-Mailer: git-send-email 1.7.12 In-Reply-To: <1357327870-13615-1-git-send-email-panto@antoniou-consulting.com> References: <1357327870-13615-1-git-send-email-panto@antoniou-consulting.com> To: unlisted-recipients:; (no To-header on input) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org of_property_notify can be utilized by other users too, export it. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 8 +------- include/linux/of.h | 11 +++++++++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 2390ddb..d598216 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -1115,7 +1115,7 @@ int of_parse_phandle_with_args(const struct device_node *np, const char *list_na EXPORT_SYMBOL(of_parse_phandle_with_args); #if defined(CONFIG_OF_DYNAMIC) -static int of_property_notify(int action, struct device_node *np, +int of_property_notify(int action, struct device_node *np, struct property *prop) { struct of_prop_reconfig pr; @@ -1124,12 +1124,6 @@ static int of_property_notify(int action, struct device_node *np, pr.prop = prop; return of_reconfig_notify(action, &pr); } -#else -static int of_property_notify(int action, struct device_node *np, - struct property *prop) -{ - return 0; -} #endif /** diff --git a/include/linux/of.h b/include/linux/of.h index 2ff35b5..aea3694 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -298,6 +298,17 @@ extern int of_parse_phandle_with_args(const struct device_node *np, const char *list_name, const char *cells_name, int index, struct of_phandle_args *out_args); +#if defined(CONFIG_OF_DYNAMIC) +extern int of_property_notify(int action, struct device_node *np, + struct property *prop); +#else +static inline int of_property_notify(int action, struct device_node *np, + struct property *prop) +{ + return 0; +} +#endif + extern void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align)); extern int of_alias_get_id(struct device_node *np, const char *stem);