mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
mfd: mcp-core: Make mcp_bus_type const
Now that the driver core can properly handle constant struct bus_type, move the mcp_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. 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> Link: https://lore.kernel.org/r/20240204-bus_cleanup-mfd-v1-1-07335ebc034f@marliere.net Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
c28c45608e
commit
6abc896ccb
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ static void mcp_bus_remove(struct device *dev)
|
|||
drv->remove(mcp);
|
||||
}
|
||||
|
||||
static struct bus_type mcp_bus_type = {
|
||||
static const struct bus_type mcp_bus_type = {
|
||||
.name = "mcp",
|
||||
.match = mcp_bus_match,
|
||||
.probe = mcp_bus_probe,
|
||||
|
|
Loading…
Reference in a new issue