diff options
author | Alan Cox <alan@linux.intel.com> | 2012-07-17 12:06:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-17 12:11:50 -0400 |
commit | ce7240e445303de3ca66e6d08f17a2ec278a5bf6 (patch) | |
tree | 8ee84f5ae903dcd72e0641ae4932da71cd9a7b4b /drivers/net/ethernet/sgi | |
parent | 9833facf90c625f9757295bda6d970f82132b7be (diff) |
8250: three way resolve of the 8250 diffs
This resolves the differences between the original 8250 patch, the revised 8250 patch
and the independant clean up of the octeon driver (to use platform devices properly yay!)
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet/sgi')
-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) |