Commit af6d0743 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

driver core: make subsys_dev_iter_exit() static

The function subsys_dev_iter_exit() is not used outside of
drivers/base/bus.c so make it static to that file and remove the global
export.
Reviewed-by: default avatarRafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230109175810.2965448-5-gregkh@linuxfoundation.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 38cdadef
...@@ -968,11 +968,10 @@ static struct device *subsys_dev_iter_next(struct subsys_dev_iter *iter) ...@@ -968,11 +968,10 @@ static struct device *subsys_dev_iter_next(struct subsys_dev_iter *iter)
* Finish an iteration. Always call this function after iteration is * Finish an iteration. Always call this function after iteration is
* complete whether the iteration ran till the end or not. * complete whether the iteration ran till the end or not.
*/ */
void subsys_dev_iter_exit(struct subsys_dev_iter *iter) static void subsys_dev_iter_exit(struct subsys_dev_iter *iter)
{ {
klist_iter_exit(&iter->ki); klist_iter_exit(&iter->ki);
} }
EXPORT_SYMBOL_GPL(subsys_dev_iter_exit);
int subsys_interface_register(struct subsys_interface *sif) int subsys_interface_register(struct subsys_interface *sif)
{ {
......
...@@ -154,7 +154,6 @@ struct subsys_dev_iter { ...@@ -154,7 +154,6 @@ struct subsys_dev_iter {
struct klist_iter ki; struct klist_iter ki;
const struct device_type *type; const struct device_type *type;
}; };
void subsys_dev_iter_exit(struct subsys_dev_iter *iter);
int bus_for_each_dev(struct bus_type *bus, struct device *start, void *data, int bus_for_each_dev(struct bus_type *bus, struct device *start, void *data,
int (*fn)(struct device *dev, void *data)); int (*fn)(struct device *dev, void *data));
......
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