diff options
author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-02-13 11:48:45 -0300 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2024-02-18 17:39:43 +0100 |
commit | 1bec7691b32710ea27741f0f8b00c1dc98d92930 (patch) | |
tree | 94da3ecf40b9665d19db34a18efa3ca7f172b7f8 /drivers/pcmcia/ds.c | |
parent | c02197fc9076e7d991c8f6adc11759c5ba52ddc6 (diff) |
pcmcia: ds: make pcmcia_bus_type const
Now that the driver core can properly handle constant struct bus_type,
move the pcmcia_bus_type variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/ds.c')
-rw-r--r-- | drivers/pcmcia/ds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index b4b8363d1de2..d3cfd353fb93 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c @@ -1406,7 +1406,7 @@ static const struct dev_pm_ops pcmcia_bus_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(pcmcia_dev_suspend, pcmcia_dev_resume) }; -struct bus_type pcmcia_bus_type = { +const struct bus_type pcmcia_bus_type = { .name = "pcmcia", .uevent = pcmcia_bus_uevent, .match = pcmcia_bus_match, |