Revert "drivers: base: export next_driver"
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 23 Apr 2021 08:28:14 +0000 (11:28 +0300)
committerIoana Ciornei <ciorneiioana@gmail.com>
Mon, 26 Apr 2021 09:22:45 +0000 (12:22 +0300)
This reverts commit b8ef4c9afb38a20194fe5d204e835f26d1a374d2.

drivers/base/bus.c
include/linux/device/bus.h

index bbebe98..a9c23ec 100644 (file)
@@ -384,7 +384,7 @@ struct device *subsys_find_device_by_id(struct bus_type *subsys, unsigned int id
 }
 EXPORT_SYMBOL_GPL(subsys_find_device_by_id);
 
-struct device_driver *next_driver(struct klist_iter *i)
+static struct device_driver *next_driver(struct klist_iter *i)
 {
        struct klist_node *n = klist_next(i);
        struct driver_private *drv_priv;
@@ -395,7 +395,6 @@ struct device_driver *next_driver(struct klist_iter *i)
        }
        return NULL;
 }
-EXPORT_SYMBOL_GPL(next_driver);
 
 /**
  * bus_for_each_drv - driver iterator
index e66d99d..1ea5e1d 100644 (file)
@@ -285,5 +285,4 @@ extern int bus_unregister_notifier(struct bus_type *bus,
 extern struct kset *bus_get_kset(struct bus_type *bus);
 extern struct klist *bus_get_device_klist(struct bus_type *bus);
 
-struct device_driver *next_driver(struct klist_iter *i);
 #endif