summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-08 14:13:30 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-09 12:43:45 +0300
commitad8685d0f61a6fc1dc2e5874f4924ff5028c5954 (patch)
tree2362a8c0e9b8fe3e5be529c650645c61aa6bb34b /drivers/base
parent4dd1f3f8f99ec51dbcfeffe95b8ab68161a332a4 (diff)
downloadlinux-ad8685d0f61a6fc1dc2e5874f4924ff5028c5954.tar.xz
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/bus.c b/drivers/base/bus.c
index bcff24b11bb3..301b9c6ece86 100644
--- a/drivers/base/bus.c
+++ b/drivers/base/bus.c
@@ -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;