File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ static void auxiliary_bus_shutdown(struct device *dev)
244
244
auxdrv -> shutdown (auxdev );
245
245
}
246
246
247
- static struct bus_type auxiliary_bus_type = {
247
+ static const struct bus_type auxiliary_bus_type = {
248
248
.name = "auxiliary" ,
249
249
.probe = auxiliary_bus_probe ,
250
250
.remove = auxiliary_bus_remove ,
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ static int isa_bus_resume(struct device *dev)
82
82
return 0 ;
83
83
}
84
84
85
- static struct bus_type isa_bus_type = {
85
+ static const struct bus_type isa_bus_type = {
86
86
.name = "isa" ,
87
87
.match = isa_bus_match ,
88
88
.probe = isa_bus_probe ,
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ static inline unsigned long phys_to_block_id(unsigned long phys)
68
68
static int memory_subsys_online (struct device * dev );
69
69
static int memory_subsys_offline (struct device * dev );
70
70
71
- static struct bus_type memory_subsys = {
71
+ static const struct bus_type memory_subsys = {
72
72
.name = MEMORY_CLASS_NAME ,
73
73
.dev_name = MEMORY_CLASS_NAME ,
74
74
.online = memory_subsys_online ,
Original file line number Diff line number Diff line change 21
21
#include <linux/swap.h>
22
22
#include <linux/slab.h>
23
23
24
- static struct bus_type node_subsys = {
24
+ static const struct bus_type node_subsys = {
25
25
.name = "node" ,
26
26
.dev_name = "node" ,
27
27
};
Original file line number Diff line number Diff line change @@ -2670,7 +2670,7 @@ static void genpd_release_dev(struct device *dev)
2670
2670
kfree (dev );
2671
2671
}
2672
2672
2673
- static struct bus_type genpd_bus_type = {
2673
+ static const struct bus_type genpd_bus_type = {
2674
2674
.name = "genpd" ,
2675
2675
};
2676
2676
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ struct soc_device {
28
28
int soc_dev_num ;
29
29
};
30
30
31
- static struct bus_type soc_bus_type = {
31
+ static const struct bus_type soc_bus_type = {
32
32
.name = "soc" ,
33
33
};
34
34
static bool soc_bus_registered ;
You can’t perform that action at this time.
0 commit comments