diff options
Diffstat (limited to 'drivers/net/ethernet/sgi/ioc3-eth.c')
-rw-r--r-- | drivers/net/ethernet/sgi/ioc3-eth.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/drivers/net/ethernet/sgi/ioc3-eth.c b/drivers/net/ethernet/sgi/ioc3-eth.c index ac149d99f78f..fcb5b0e0f260 100644 --- a/drivers/net/ethernet/sgi/ioc3-eth.c +++ b/drivers/net/ethernet/sgi/ioc3-eth.c | |||
@@ -1147,15 +1147,17 @@ static void __devinit ioc3_8250_register(struct ioc3_uartregs __iomem *uart) | |||
1147 | { | 1147 | { |
1148 | #define COSMISC_CONSTANT 6 | 1148 | #define COSMISC_CONSTANT 6 |
1149 | 1149 | ||
1150 | struct uart_port port = { | 1150 | struct uart_8250_port port = { |
1151 | .irq = 0, | 1151 | .port = { |
1152 | .flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF, | 1152 | .irq = 0, |
1153 | .iotype = UPIO_MEM, | 1153 | .flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF, |
1154 | .regshift = 0, | 1154 | .iotype = UPIO_MEM, |
1155 | .uartclk = (22000000 << 1) / COSMISC_CONSTANT, | 1155 | .regshift = 0, |
1156 | 1156 | .uartclk = (22000000 << 1) / COSMISC_CONSTANT, | |
1157 | .membase = (unsigned char __iomem *) uart, | 1157 | |
1158 | .mapbase = (unsigned long) uart, | 1158 | .membase = (unsigned char __iomem *) uart, |
1159 | .mapbase = (unsigned long) uart, | ||
1160 | } | ||
1159 | }; | 1161 | }; |
1160 | unsigned char lcr; | 1162 | unsigned char lcr; |
1161 | 1163 | ||
@@ -1164,7 +1166,7 @@ static void __devinit ioc3_8250_register(struct ioc3_uartregs __iomem *uart) | |||
1164 | uart->iu_scr = COSMISC_CONSTANT, | 1166 | uart->iu_scr = COSMISC_CONSTANT, |
1165 | uart->iu_lcr = lcr; | 1167 | uart->iu_lcr = lcr; |
1166 | uart->iu_lcr; | 1168 | uart->iu_lcr; |
1167 | serial8250_register_port(&port); | 1169 | serial8250_register_8250_port(&port); |
1168 | } | 1170 | } |
1169 | 1171 | ||
1170 | static void __devinit ioc3_serial_probe(struct pci_dev *pdev, struct ioc3 *ioc3) | 1172 | static void __devinit ioc3_serial_probe(struct pci_dev *pdev, struct ioc3 *ioc3) |