PNP: make pnp_bus_type const
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 12:51:21 +0000 (13:51 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 9 Jan 2024 14:00:09 +0000 (15:00 +0100)
commit2fb7e4dd35c52933b18ff127bf92d703c8e2e897
treef3fc49371fdcc66849624f606c99dc3d0782b665
parentba3f5058db437d919f8468db50483dd9028ff688
PNP: make pnp_bus_type const

Now that the driver core can properly handle constant struct bus_type,
move the pnp_bus_type variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pnp/driver.c
include/linux/pnp.h