Commit b3875759 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

dio: Make dio_match_device() static

Unlike its PCI counterpart, dio_match_device() was never used outside
the DIO bus code.
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20200112165613.20960-2-geert@linux-m68k.org
parent 7332bc4d
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* dio_device_id structure or %NULL if there is no match. * dio_device_id structure or %NULL if there is no match.
*/ */
const struct dio_device_id * static const struct dio_device_id *
dio_match_device(const struct dio_device_id *ids, dio_match_device(const struct dio_device_id *ids,
const struct dio_dev *d) const struct dio_dev *d)
{ {
...@@ -137,7 +137,6 @@ static int __init dio_driver_init(void) ...@@ -137,7 +137,6 @@ static int __init dio_driver_init(void)
postcore_initcall(dio_driver_init); postcore_initcall(dio_driver_init);
EXPORT_SYMBOL(dio_match_device);
EXPORT_SYMBOL(dio_register_driver); EXPORT_SYMBOL(dio_register_driver);
EXPORT_SYMBOL(dio_unregister_driver); EXPORT_SYMBOL(dio_unregister_driver);
EXPORT_SYMBOL(dio_bus_type); EXPORT_SYMBOL(dio_bus_type);
...@@ -247,7 +247,6 @@ extern int dio_create_sysfs_dev_files(struct dio_dev *); ...@@ -247,7 +247,6 @@ extern int dio_create_sysfs_dev_files(struct dio_dev *);
/* New-style probing */ /* New-style probing */
extern int dio_register_driver(struct dio_driver *); extern int dio_register_driver(struct dio_driver *);
extern void dio_unregister_driver(struct dio_driver *); extern void dio_unregister_driver(struct dio_driver *);
extern const struct dio_device_id *dio_match_device(const struct dio_device_id *ids, const struct dio_dev *z);
static inline struct dio_driver *dio_dev_driver(const struct dio_dev *d) static inline struct dio_driver *dio_dev_driver(const struct dio_dev *d)
{ {
return d->driver; return d->driver;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment