diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-01-29 07:04:33 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-02-09 10:32:42 -0500 |
commit | fcdeb7fedf89f4bbc2e11959794968080cd8426e (patch) | |
tree | b549ce78d381f6185d10395afdea9ce8f741fd40 /include/linux/of.h | |
parent | 580537140568caddbc8a727d4c2f238d38707f68 (diff) |
of: merge of_attach_node() & of_detach_node()
Merge common code between PowerPC and Microblaze
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r-- | include/linux/of.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index dbabf86e0b7a..3cc0d7ae290e 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -184,4 +184,10 @@ extern int of_parse_phandles_with_args(struct device_node *np, | |||
184 | const char *list_name, const char *cells_name, int index, | 184 | const char *list_name, const char *cells_name, int index, |
185 | struct device_node **out_node, const void **out_args); | 185 | struct device_node **out_node, const void **out_args); |
186 | 186 | ||
187 | #if defined(CONFIG_OF_DYNAMIC) | ||
188 | /* For updating the device tree at runtime */ | ||
189 | extern void of_attach_node(struct device_node *); | ||
190 | extern void of_detach_node(struct device_node *); | ||
191 | #endif | ||
192 | |||
187 | #endif /* _LINUX_OF_H */ | 193 | #endif /* _LINUX_OF_H */ |