lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 4 Jan 2013 21:31:06 +0200 From: Pantelis Antoniou <panto@...oniou-consulting.com> To: unlisted-recipients:; (no To-header on input) Cc: Grant Likely <grant.likely@...retlab.ca>, Rob Herring <rob.herring@...xeda.com>, Rob Landley <rob@...dley.net>, Jon Loeliger <jdl@....com>, Tony Lindgren <tony@...mide.com>, Stephen Warren <swarren@...dotorg.org>, David Gibson <david@...son.dropbear.id.au>, Benoit Cousson <b-cousson@...com>, Mitch Bradley <wmb@...mworks.com>, Alan Tull <atull@...era.com>, linux-omap@...r.kernel.org, devicetree-discuss@...ts.ozlabs.org, linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org, Matt Porter <mporter@...com>, Russ Dill <Russ.Dill@...com>, Koen Kooi <koen@...inion.thruhere.net>, Joel A Fernandes <agnel.joel@...il.com>, Rob Clark <robdclark@...il.com>, Jason Kridner <jkridner@...gleboard.org>, Matt Ranostay <mranostay@...il.com>, Pantelis Antoniou <panto@...oniou-consulting.com> Subject: [PATCH 2/6] OF: export of_property_notify of_property_notify can be utilized by other users too, export it. Signed-off-by: Pantelis Antoniou <panto@...oniou-consulting.com> --- 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); -- 1.7.12 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists