From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755378Ab3KERun (ORCPT ); Tue, 5 Nov 2013 12:50:43 -0500 Received: from li42-95.members.linode.com ([209.123.162.95]:40865 "EHLO li42-95.members.linode.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754593Ab3KERul (ORCPT ); Tue, 5 Nov 2013 12:50:41 -0500 From: Pantelis Antoniou To: Grant Likely Cc: Rob Herring , Stephen Warren , Matt Porter , Koen Kooi , Alison Chaiken , Dinh Nguyen , Jan Lubbe , Alexander Sverdlin , Michael Stickel , Guenter Roeck , Dirk Behme , Alan Tull , Sascha Hauer , Michael Bohan , Ionut Nicu , Michal Simek , Matt Ranostay , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Pantelis Antoniou Subject: [PATCH 3/5] OF: export of_property_notify Date: Tue, 5 Nov 2013 19:50:14 +0200 Message-Id: <1383673816-29293-4-git-send-email-panto@antoniou-consulting.com> X-Mailer: git-send-email 1.7.12 In-Reply-To: <1383673816-29293-1-git-send-email-panto@antoniou-consulting.com> References: <1383673816-29293-1-git-send-email-panto@antoniou-consulting.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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 ca10916..0ffc5a9 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -1424,7 +1424,7 @@ int of_count_phandle_with_args(const struct device_node *np, const char *list_na EXPORT_SYMBOL(of_count_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; @@ -1433,12 +1433,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 786c4f6..6fec255 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -307,6 +307,17 @@ extern int of_parse_phandle_with_fixed_args(const struct device_node *np, extern int of_count_phandle_with_args(const struct device_node *np, const char *list_name, const char *cells_name); +#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); -- 1.7.12