]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
of: make of_fdt_is_compatible() static
authorFrank Rowand <frank.rowand@sony.com>
Tue, 20 Jun 2017 23:38:28 +0000 (16:38 -0700)
committerRob Herring <robh@kernel.org>
Thu, 22 Jun 2017 16:14:48 +0000 (11:14 -0500)
The callers of of_fdt_is_compatible() are all in fdt.c so
make it static.

Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c
include/linux/of_fdt.h

index 3080d9dd031d14f27553b8596dc4d2dc0248bdfa..5c71cb9334266f1b462198481310d1238f81ae8b 100644 (file)
@@ -91,7 +91,7 @@ void of_fdt_limit_memory(int limit)
  * On match, returns a non-zero value with smaller values returned for more
  * specific compatible values.
  */
-int of_fdt_is_compatible(const void *blob,
+static int of_fdt_is_compatible(const void *blob,
                      unsigned long node, const char *compat)
 {
        const char *cp;
index 1dfbfd0d8040cb56820e43f51fc9bf58b7d117e8..013c5418aeecfdbdfb5804c6f69547b2aa57c463 100644 (file)
@@ -31,9 +31,6 @@ extern void *of_fdt_get_property(const void *blob,
                                 unsigned long node,
                                 const char *name,
                                 int *size);
-extern int of_fdt_is_compatible(const void *blob,
-                               unsigned long node,
-                               const char *compat);
 extern bool of_fdt_is_big_endian(const void *blob,
                                 unsigned long node);
 extern int of_fdt_match(const void *blob, unsigned long node,