aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/firewire
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-12-19 15:59:32 +0100
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>2024-01-08 09:36:55 +0900
commit10416a3578ba5f76d0b161d2d36a1d8a4c46a69d (patch)
tree11b0661131afdcba6851822f2be011da2392a97f /drivers/firewire
parentLinux 6.7 (diff)
downloadwireguard-linux-10416a3578ba5f76d0b161d2d36a1d8a4c46a69d.tar.xz
wireguard-linux-10416a3578ba5f76d0b161d2d36a1d8a4c46a69d.zip
firewire: make fw_bus_type const
Now that the driver core can properly handle constant struct bus_type, move the fw_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Takashi Sakamoto <o-takashi@sakamocchi.jp> Cc: linux1394-devel@lists.sourceforge.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/2023121931-skydiver-dodgy-d1bd@gregkh Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'drivers/firewire')
-rw-r--r--drivers/firewire/core-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/core-device.c b/drivers/firewire/core-device.c
index 2828e9573e90..7ca8e31dadb5 100644
--- a/drivers/firewire/core-device.c
+++ b/drivers/firewire/core-device.c
@@ -219,7 +219,7 @@ static int fw_unit_uevent(const struct device *dev, struct kobj_uevent_env *env)
return 0;
}
-struct bus_type fw_bus_type = {
+const struct bus_type fw_bus_type = {
.name = "firewire",
.match = fw_unit_match,
.probe = fw_unit_probe,