of: merge machine_is_compatible()
[firefly-linux-kernel-4.4.55.git] / arch / powerpc / kernel / prom.c
index 877fad9b3745ef9237557724ee4f77a772f8a960..caeea9a5fcc28dc758e7f4c5618e4f0aebba64dd 100644 (file)
@@ -754,25 +754,6 @@ void __init early_init_devtree(void *params)
        DBG(" <- early_init_devtree()\n");
 }
 
-
-/**
- * Indicates whether the root node has a given value in its
- * compatible property.
- */
-int machine_is_compatible(const char *compat)
-{
-       struct device_node *root;
-       int rc = 0;
-
-       root = of_find_node_by_path("/");
-       if (root) {
-               rc = of_device_is_compatible(root, compat);
-               of_node_put(root);
-       }
-       return rc;
-}
-EXPORT_SYMBOL(machine_is_compatible);
-
 /*******
  *
  * New implementation of the OF "find" APIs, return a refcounted