summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-13 19:29:08 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-23 13:21:22 +0100
commit7c06be04251a0b3349868622a2111a54cbfad8d4 (patch)
tree6fa8a1146f778b1be04d8340fb80f2e13c6d6b8d /drivers/base
parent9622b9f282e0f0d37683b21575b683039169e397 (diff)
downloadlinux-stable-7c06be04251a0b3349868622a2111a54cbfad8d4.tar.gz
linux-stable-7c06be04251a0b3349868622a2111a54cbfad8d4.tar.bz2
linux-stable-7c06be04251a0b3349868622a2111a54cbfad8d4.zip
driver core: bus: constify driver_find()
The driver_find() 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/20230313182918.1312597-26-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 ced61fad390e..8fea26c22521 100644
--- a/drivers/base/bus.c
+++ b/drivers/base/bus.c
@@ -1307,7 +1307,7 @@ EXPORT_SYMBOL_GPL(subsys_virtual_register);
* from being unregistered or unloaded while the caller is using it.
* The caller is responsible for preventing this.
*/
-struct device_driver *driver_find(const char *name, struct bus_type *bus)
+struct device_driver *driver_find(const char *name, const struct bus_type *bus)
{
struct subsys_private *sp = bus_to_subsys(bus);
struct kobject *k;