summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-11-27 13:27:38 +0100
committerThierry Reding <treding@nvidia.com>2014-12-19 12:17:19 +0100
commit2b8fe75210ff0a13bd58d9d1d4039e9706f2dc44 (patch)
tree3f6804fd01707952f9b2d2d2bdb1be3724be7e63
parent5daeacf7185bd4c88ad59481c75de9d2166c2d9f (diff)
of/reconfig: Make dummy registration not failstaging/fixes
Subsystems will typically WARN_ON() failure to register a notifier. To prevent that from happening if OF_DYNAMIC is disabled, make the dummies succeed rather than fail. Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--include/linux/of.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index dfde07e77a6..d862bf12bb7 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -981,11 +981,11 @@ static inline int of_changeset_update_property(struct of_changeset *ocs,
#else /* CONFIG_OF_DYNAMIC */
static inline int of_reconfig_notifier_register(struct notifier_block *nb)
{
- return -EINVAL;
+ return 0;
}
static inline int of_reconfig_notifier_unregister(struct notifier_block *nb)
{
- return -EINVAL;
+ return 0;
}
static inline int of_reconfig_notify(unsigned long action,
struct of_reconfig_data *arg)