diff options
Diffstat (limited to 'arch/mips/bcm47xx/serial.c')
-rw-r--r-- | arch/mips/bcm47xx/serial.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/bcm47xx/serial.c b/arch/mips/bcm47xx/serial.c index 17c67e24b549..fcef68836979 100644 --- a/arch/mips/bcm47xx/serial.c +++ b/arch/mips/bcm47xx/serial.c | |||
@@ -23,6 +23,7 @@ static struct platform_device uart8250_device = { | |||
23 | }, | 23 | }, |
24 | }; | 24 | }; |
25 | 25 | ||
26 | #ifdef CONFIG_BCM47XX_SSB | ||
26 | static int __init uart8250_init_ssb(void) | 27 | static int __init uart8250_init_ssb(void) |
27 | { | 28 | { |
28 | int i; | 29 | int i; |
@@ -44,12 +45,15 @@ static int __init uart8250_init_ssb(void) | |||
44 | } | 45 | } |
45 | return platform_device_register(&uart8250_device); | 46 | return platform_device_register(&uart8250_device); |
46 | } | 47 | } |
48 | #endif | ||
47 | 49 | ||
48 | static int __init uart8250_init(void) | 50 | static int __init uart8250_init(void) |
49 | { | 51 | { |
50 | switch (bcm47xx_bus_type) { | 52 | switch (bcm47xx_bus_type) { |
53 | #ifdef CONFIG_BCM47XX_SSB | ||
51 | case BCM47XX_BUS_TYPE_SSB: | 54 | case BCM47XX_BUS_TYPE_SSB: |
52 | return uart8250_init_ssb(); | 55 | return uart8250_init_ssb(); |
56 | #endif | ||
53 | } | 57 | } |
54 | return -EINVAL; | 58 | return -EINVAL; |
55 | } | 59 | } |