Skip to content

Commit b387575

Browse files
committed
dio: Make dio_match_device() static
Unlike its PCI counterpart, dio_match_device() was never used outside the DIO bus code. Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 7332bc4 commit b387575

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

drivers/dio/dio-driver.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* dio_device_id structure or %NULL if there is no match.
2626
*/
2727

28-
const struct dio_device_id *
28+
static const struct dio_device_id *
2929
dio_match_device(const struct dio_device_id *ids,
3030
const struct dio_dev *d)
3131
{
@@ -137,7 +137,6 @@ static int __init dio_driver_init(void)
137137

138138
postcore_initcall(dio_driver_init);
139139

140-
EXPORT_SYMBOL(dio_match_device);
141140
EXPORT_SYMBOL(dio_register_driver);
142141
EXPORT_SYMBOL(dio_unregister_driver);
143142
EXPORT_SYMBOL(dio_bus_type);

include/linux/dio.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ extern int dio_create_sysfs_dev_files(struct dio_dev *);
247247
/* New-style probing */
248248
extern int dio_register_driver(struct dio_driver *);
249249
extern void dio_unregister_driver(struct dio_driver *);
250-
extern const struct dio_device_id *dio_match_device(const struct dio_device_id *ids, const struct dio_dev *z);
251250
static inline struct dio_driver *dio_dev_driver(const struct dio_dev *d)
252251
{
253252
return d->driver;

0 commit comments

Comments
 (0)