Skip to content

Commit fa494c0

Browse files
rbmarlieretsbogend
authored andcommitted
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 <[email protected]> Suggested-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Ricardo B. Marliere <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 5033ad5 commit fa494c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/mips/sgi-ip22/ip22-gio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <asm/sgi/mc.h>
1313
#include <asm/sgi/ip22.h>
1414

15-
static struct bus_type gio_bus_type;
15+
static const struct bus_type gio_bus_type;
1616

1717
static struct {
1818
const char *name;
@@ -378,7 +378,7 @@ static void ip22_check_gio(int slotno, unsigned long addr, int irq)
378378
printk(KERN_INFO "GIO: slot %d : Empty\n", slotno);
379379
}
380380

381-
static struct bus_type gio_bus_type = {
381+
static const struct bus_type gio_bus_type = {
382382
.name = "gio",
383383
.dev_groups = gio_dev_groups,
384384
.match = gio_bus_match,

0 commit comments

Comments
 (0)