mips: sgi-ip22: make gio_bus_type const
Now that the driver core can properly handle constant struct bus_type, move the gio_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> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
5033ad5660
commit
fa494c0190
@ -12,7 +12,7 @@
|
|||||||
#include <asm/sgi/mc.h>
|
#include <asm/sgi/mc.h>
|
||||||
#include <asm/sgi/ip22.h>
|
#include <asm/sgi/ip22.h>
|
||||||
|
|
||||||
static struct bus_type gio_bus_type;
|
static const struct bus_type gio_bus_type;
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
@ -378,7 +378,7 @@ static void ip22_check_gio(int slotno, unsigned long addr, int irq)
|
|||||||
printk(KERN_INFO "GIO: slot %d : Empty\n", slotno);
|
printk(KERN_INFO "GIO: slot %d : Empty\n", slotno);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct bus_type gio_bus_type = {
|
static const struct bus_type gio_bus_type = {
|
||||||
.name = "gio",
|
.name = "gio",
|
||||||
.dev_groups = gio_dev_groups,
|
.dev_groups = gio_dev_groups,
|
||||||
.match = gio_bus_match,
|
.match = gio_bus_match,
|
||||||
|
Loading…
Reference in New Issue
Block a user