]> git.ipfire.org Git - people/ms/linux.git/commitdiff
zorro: Make zorro_match_device() static
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 12 Jan 2020 16:49:45 +0000 (17:49 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 9 Mar 2020 10:12:19 +0000 (11:12 +0100)
Unlike its PCI counterpart, zorro_match_device() was never used outside
the Zorro bus code.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20200112164949.20196-2-geert@linux-m68k.org
drivers/zorro/zorro-driver.c
include/linux/zorro.h

index fa23b7366b98ccbea916e05ad1d810e4c5ad0a50..84ac94aecb7966b8833caf48e0c40c3dda3de618 100644 (file)
@@ -28,7 +28,7 @@
      *  zorro_device_id structure or %NULL if there is no match.
      */
 
-const struct zorro_device_id *
+static const struct zorro_device_id *
 zorro_match_device(const struct zorro_device_id *ids,
                   const struct zorro_dev *z)
 {
@@ -39,7 +39,6 @@ zorro_match_device(const struct zorro_device_id *ids,
        }
        return NULL;
 }
-EXPORT_SYMBOL(zorro_match_device);
 
 
 static int zorro_device_probe(struct device *dev)
index 63fbba0740c2c2bfb35b4a29f6c146b0137f695d..cb72515b0ac170402d0ffe8d276988310fd70062 100644 (file)
@@ -70,7 +70,6 @@ struct zorro_driver {
 /* New-style probing */
 extern int zorro_register_driver(struct zorro_driver *);
 extern void zorro_unregister_driver(struct zorro_driver *);
-extern const struct zorro_device_id *zorro_match_device(const struct zorro_device_id *ids, const struct zorro_dev *z);
 static inline struct zorro_driver *zorro_dev_driver(const struct zorro_dev *z)
 {
     return z->driver;