diff options
Diffstat (limited to 'arch/sparc64/kernel/central.c')
-rw-r--r-- | arch/sparc64/kernel/central.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/sparc64/kernel/central.c b/arch/sparc64/kernel/central.c index e724c54af029..c65b2f9c98d8 100644 --- a/arch/sparc64/kernel/central.c +++ b/arch/sparc64/kernel/central.c | |||
@@ -32,7 +32,7 @@ static void central_probe_failure(int line) | |||
32 | static void central_ranges_init(struct linux_central *central) | 32 | static void central_ranges_init(struct linux_central *central) |
33 | { | 33 | { |
34 | struct device_node *dp = central->prom_node; | 34 | struct device_node *dp = central->prom_node; |
35 | void *pval; | 35 | const void *pval; |
36 | int len; | 36 | int len; |
37 | 37 | ||
38 | central->num_central_ranges = 0; | 38 | central->num_central_ranges = 0; |
@@ -47,7 +47,7 @@ static void central_ranges_init(struct linux_central *central) | |||
47 | static void fhc_ranges_init(struct linux_fhc *fhc) | 47 | static void fhc_ranges_init(struct linux_fhc *fhc) |
48 | { | 48 | { |
49 | struct device_node *dp = fhc->prom_node; | 49 | struct device_node *dp = fhc->prom_node; |
50 | void *pval; | 50 | const void *pval; |
51 | int len; | 51 | int len; |
52 | 52 | ||
53 | fhc->num_fhc_ranges = 0; | 53 | fhc->num_fhc_ranges = 0; |
@@ -119,7 +119,7 @@ static unsigned long prom_reg_to_paddr(struct linux_prom_registers *r) | |||
119 | static void probe_other_fhcs(void) | 119 | static void probe_other_fhcs(void) |
120 | { | 120 | { |
121 | struct device_node *dp; | 121 | struct device_node *dp; |
122 | struct linux_prom64_registers *fpregs; | 122 | const struct linux_prom64_registers *fpregs; |
123 | 123 | ||
124 | for_each_node_by_name(dp, "fhc") { | 124 | for_each_node_by_name(dp, "fhc") { |
125 | struct linux_fhc *fhc; | 125 | struct linux_fhc *fhc; |
@@ -190,7 +190,8 @@ static void probe_clock_board(struct linux_central *central, | |||
190 | struct device_node *fp) | 190 | struct device_node *fp) |
191 | { | 191 | { |
192 | struct device_node *dp; | 192 | struct device_node *dp; |
193 | struct linux_prom_registers cregs[3], *pr; | 193 | struct linux_prom_registers cregs[3]; |
194 | const struct linux_prom_registers *pr; | ||
194 | int nslots, tmp, nregs; | 195 | int nslots, tmp, nregs; |
195 | 196 | ||
196 | dp = fp->child; | 197 | dp = fp->child; |
@@ -299,7 +300,8 @@ static void init_all_fhc_hw(void) | |||
299 | 300 | ||
300 | void central_probe(void) | 301 | void central_probe(void) |
301 | { | 302 | { |
302 | struct linux_prom_registers fpregs[6], *pr; | 303 | struct linux_prom_registers fpregs[6]; |
304 | const struct linux_prom_registers *pr; | ||
303 | struct linux_fhc *fhc; | 305 | struct linux_fhc *fhc; |
304 | struct device_node *dp, *fp; | 306 | struct device_node *dp, *fp; |
305 | int err; | 307 | int err; |