Commit a6a78916 authored by Ricardo B. Marliere's avatar Ricardo B. Marliere Committed by Borislav Petkov (AMD)

x86/mce: Make mce_subsys const

Now that the driver core can properly handle constant struct bus_type,
make mce_subsys a constant structure.
Suggested-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarRicardo B. Marliere <ricardo@marliere.net>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20240204-bus_cleanup-x86-v1-1-4e7171be88e8@marliere.net
parent 54be6c6c
...@@ -2431,7 +2431,7 @@ static void mce_enable_ce(void *all) ...@@ -2431,7 +2431,7 @@ static void mce_enable_ce(void *all)
__mcheck_cpu_init_timer(); __mcheck_cpu_init_timer();
} }
static struct bus_type mce_subsys = { static const struct bus_type mce_subsys = {
.name = "machinecheck", .name = "machinecheck",
.dev_name = "machinecheck", .dev_name = "machinecheck",
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment