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/powerpc/kernel | |
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/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/prom.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index 877fad9b3745..caeea9a5fcc2 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c | |||
@@ -754,25 +754,6 @@ void __init early_init_devtree(void *params) | |||
754 | DBG(" <- early_init_devtree()\n"); | 754 | DBG(" <- early_init_devtree()\n"); |
755 | } | 755 | } |
756 | 756 | ||
757 | |||
758 | /** | ||
759 | * Indicates whether the root node has a given value in its | ||
760 | * compatible property. | ||
761 | */ | ||
762 | int machine_is_compatible(const char *compat) | ||
763 | { | ||
764 | struct device_node *root; | ||
765 | int rc = 0; | ||
766 | |||
767 | root = of_find_node_by_path("/"); | ||
768 | if (root) { | ||
769 | rc = of_device_is_compatible(root, compat); | ||
770 | of_node_put(root); | ||
771 | } | ||
772 | return rc; | ||
773 | } | ||
774 | EXPORT_SYMBOL(machine_is_compatible); | ||
775 | |||
776 | /******* | 757 | /******* |
777 | * | 758 | * |
778 | * New implementation of the OF "find" APIs, return a refcounted | 759 | * New implementation of the OF "find" APIs, return a refcounted |