Commit ad8685d0 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

driver core: bus: constify bus_unregister()

The bus_unregister() function can now take a const * to bus_type, not
just a * so fix that up.

Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230208111330.439504-22-gregkh@linuxfoundation.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4dd1f3f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -925,7 +925,7 @@ EXPORT_SYMBOL_GPL(bus_register);
 * Unregister the child subsystems and the bus itself.
 * Finally, we call bus_put() to release the refcount
 */
void bus_unregister(struct bus_type *bus)
void bus_unregister(const struct bus_type *bus)
{
	struct subsys_private *sp = bus_to_subsys(bus);
	struct kobject *bus_kobj;
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ struct bus_type {

extern int __must_check bus_register(struct bus_type *bus);

extern void bus_unregister(struct bus_type *bus);
extern void bus_unregister(const struct bus_type *bus);

extern int __must_check bus_rescan_devices(struct bus_type *bus);