diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-01-28 15:47:25 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-01-28 15:47:25 -0500 |
commit | 1f43cfb9474d1c4f22598b6e3213ec035be6dd56 (patch) | |
tree | 71b769e38856b591ec68d9bb593766bdc679c0c9 /arch/microblaze/kernel/prom.c | |
parent | 86e032213424958b45564d0cc96b3316641a49d3 (diff) |
of: merge machine_is_compatible()
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 'arch/microblaze/kernel/prom.c')
-rw-r--r-- | arch/microblaze/kernel/prom.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/microblaze/kernel/prom.c b/arch/microblaze/kernel/prom.c index 5505bcffd7dd..16a001c71e2e 100644 --- a/arch/microblaze/kernel/prom.c +++ b/arch/microblaze/kernel/prom.c | |||
@@ -318,24 +318,6 @@ void __init early_init_devtree(void *params) | |||
318 | pr_debug(" <- early_init_devtree()\n"); | 318 | pr_debug(" <- early_init_devtree()\n"); |
319 | } | 319 | } |
320 | 320 | ||
321 | /** | ||
322 | * Indicates whether the root node has a given value in its | ||
323 | * compatible property. | ||
324 | */ | ||
325 | int machine_is_compatible(const char *compat) | ||
326 | { | ||
327 | struct device_node *root; | ||
328 | int rc = 0; | ||
329 | |||
330 | root = of_find_node_by_path("/"); | ||
331 | if (root) { | ||
332 | rc = of_device_is_compatible(root, compat); | ||
333 | of_node_put(root); | ||
334 | } | ||
335 | return rc; | ||
336 | } | ||
337 | EXPORT_SYMBOL(machine_is_compatible); | ||
338 | |||
339 | /******* | 321 | /******* |
340 | * | 322 | * |
341 | * New implementation of the OF "find" APIs, return a refcounted | 323 | * New implementation of the OF "find" APIs, return a refcounted |