aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/bcm47xx/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/bcm47xx/serial.c')
-rw-r--r--arch/mips/bcm47xx/serial.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/mips/bcm47xx/serial.c b/arch/mips/bcm47xx/serial.c
index 59c11afdb2ab..17c67e24b549 100644
--- a/arch/mips/bcm47xx/serial.c
+++ b/arch/mips/bcm47xx/serial.c
@@ -23,10 +23,10 @@ static struct platform_device uart8250_device = {
23 }, 23 },
24}; 24};
25 25
26static int __init uart8250_init(void) 26static int __init uart8250_init_ssb(void)
27{ 27{
28 int i; 28 int i;
29 struct ssb_mipscore *mcore = &(ssb_bcm47xx.mipscore); 29 struct ssb_mipscore *mcore = &(bcm47xx_bus.ssb.mipscore);
30 30
31 memset(&uart8250_data, 0, sizeof(uart8250_data)); 31 memset(&uart8250_data, 0, sizeof(uart8250_data));
32 32
@@ -45,6 +45,15 @@ static int __init uart8250_init(void)
45 return platform_device_register(&uart8250_device); 45 return platform_device_register(&uart8250_device);
46} 46}
47 47
48static int __init uart8250_init(void)
49{
50 switch (bcm47xx_bus_type) {
51 case BCM47XX_BUS_TYPE_SSB:
52 return uart8250_init_ssb();
53 }
54 return -EINVAL;
55}
56
48module_init(uart8250_init); 57module_init(uart8250_init);
49 58
50MODULE_AUTHOR("Aurelien Jarno <aurelien@aurel32.net>"); 59MODULE_AUTHOR("Aurelien Jarno <aurelien@aurel32.net>");