Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

zorro: Make zorro_match_device() static

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

+1 -3
+1 -2
drivers/zorro/zorro-driver.c
··· 28 28 * zorro_device_id structure or %NULL if there is no match. 29 29 */ 30 30 31 - const struct zorro_device_id * 31 + static const struct zorro_device_id * 32 32 zorro_match_device(const struct zorro_device_id *ids, 33 33 const struct zorro_dev *z) 34 34 { ··· 39 39 } 40 40 return NULL; 41 41 } 42 - EXPORT_SYMBOL(zorro_match_device); 43 42 44 43 45 44 static int zorro_device_probe(struct device *dev)
-1
include/linux/zorro.h
··· 70 70 /* New-style probing */ 71 71 extern int zorro_register_driver(struct zorro_driver *); 72 72 extern void zorro_unregister_driver(struct zorro_driver *); 73 - extern const struct zorro_device_id *zorro_match_device(const struct zorro_device_id *ids, const struct zorro_dev *z); 74 73 static inline struct zorro_driver *zorro_dev_driver(const struct zorro_dev *z) 75 74 { 76 75 return z->driver;