diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2015-05-16 12:12:29 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-05-18 08:06:35 +0200 |
commit | 145e65ab12e7a8d7a895b8a8a4631ae303ec734f (patch) | |
tree | 9612f457584f15eae8714c0181fbb0174db5246d /include | |
parent | 65a8f2f8f1066b589560b1f09f3ae1da485335eb (diff) | |
download | barebox-145e65ab12e7a8d7a895b8a8a4631ae303ec734f.tar.gz barebox-145e65ab12e7a8d7a895b8a8a4631ae303ec734f.tar.xz |
of: add a function to remove an of_fixup
This function is needed when a device that already registered a fixup in
the probe routine fails later to probe completely. Without unregistering
the fixup the function might later be called with invalid data.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/of.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h index e73cd7a446..c02f5f49ab 100644 --- a/include/of.h +++ b/include/of.h @@ -243,6 +243,7 @@ struct device_d *of_find_device_by_node_path(const char *path); #define OF_FIND_PATH_FLAGS_BB 1 /* return .bb device if available */ int of_find_path(struct device_node *node, const char *propname, char **outpath, unsigned flags); int of_register_fixup(int (*fixup)(struct device_node *, void *), void *context); +int of_unregister_fixup(int (*fixup)(struct device_node *, void *), void *context); struct device_node *of_find_node_by_alias(struct device_node *root, const char *alias); struct device_node *of_find_node_by_path_or_alias(struct device_node *root, |