Commit 6f64af39 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Need some more SPARC32 ifdeffing in here.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b12d2df8
...@@ -231,6 +231,7 @@ static void __init sbus_bus_ranges_init(int parent_node, struct sbus_bus *sbus) ...@@ -231,6 +231,7 @@ static void __init sbus_bus_ranges_init(int parent_node, struct sbus_bus *sbus)
return; return;
} }
sbus->num_sbus_ranges = len / sizeof(struct linux_prom_ranges); sbus->num_sbus_ranges = len / sizeof(struct linux_prom_ranges);
#ifdef CONFIG_SPARC32
if (sparc_cpu_model == sun4d) { if (sparc_cpu_model == sun4d) {
struct linux_prom_ranges iounit_ranges[PROMREG_MAX]; struct linux_prom_ranges iounit_ranges[PROMREG_MAX];
int num_iounit_ranges; int num_iounit_ranges;
...@@ -243,6 +244,7 @@ static void __init sbus_bus_ranges_init(int parent_node, struct sbus_bus *sbus) ...@@ -243,6 +244,7 @@ static void __init sbus_bus_ranges_init(int parent_node, struct sbus_bus *sbus)
prom_adjust_ranges (sbus->sbus_ranges, sbus->num_sbus_ranges, iounit_ranges, num_iounit_ranges); prom_adjust_ranges (sbus->sbus_ranges, sbus->num_sbus_ranges, iounit_ranges, num_iounit_ranges);
} }
} }
#endif
} }
static void __init __apply_ranges_to_regs(struct linux_prom_ranges *ranges, static void __init __apply_ranges_to_regs(struct linux_prom_ranges *ranges,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment