diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-08 14:13:30 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-09 12:43:45 +0300 |
commit | ad8685d0f61a6fc1dc2e5874f4924ff5028c5954 (patch) | |
tree | 2362a8c0e9b8fe3e5be529c650645c61aa6bb34b /include/linux/device | |
parent | 4dd1f3f8f99ec51dbcfeffe95b8ab68161a332a4 (diff) | |
download | linux-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 'include/linux/device')
-rw-r--r-- | include/linux/device/bus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/device/bus.h b/include/linux/device/bus.h index 425d79d6cf69..31be18608f83 100644 --- a/include/linux/device/bus.h +++ b/include/linux/device/bus.h @@ -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); |