diff options
author | David Daney <david.daney@cavium.com> | 2012-08-14 12:42:39 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-14 17:54:31 -0400 |
commit | 640de636a1f149a92fe54f564ce931ec6b8418c6 (patch) | |
tree | 4b4d1cc1648ecd66d9765ea0a27cff5331752811 /arch/mips/cavium-octeon/serial.c | |
parent | a33ba827460cdab644e907fc0c740dc7fde56c17 (diff) |
MIPS: OCTEON: Fix breakage due to 8250 changes.
The changes in linux-next removing serial8250_register_port() cause
OCTEON to fail to compile.
Lets make OCTEON use the new serial8250_register_8250_port() instead.
Signed-off-by: David Daney <david.daney@cavium.com>
Cc: Alan Cox <alan@linux.intel.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mips/cavium-octeon/serial.c')
-rw-r--r-- | arch/mips/cavium-octeon/serial.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/arch/mips/cavium-octeon/serial.c b/arch/mips/cavium-octeon/serial.c index 138b2216b4f8..569f41bdcc46 100644 --- a/arch/mips/cavium-octeon/serial.c +++ b/arch/mips/cavium-octeon/serial.c | |||
@@ -47,40 +47,40 @@ static int __devinit octeon_serial_probe(struct platform_device *pdev) | |||
47 | { | 47 | { |
48 | int irq, res; | 48 | int irq, res; |
49 | struct resource *res_mem; | 49 | struct resource *res_mem; |
50 | struct uart_port port; | 50 | struct uart_8250_port up; |
51 | 51 | ||
52 | /* All adaptors have an irq. */ | 52 | /* All adaptors have an irq. */ |
53 | irq = platform_get_irq(pdev, 0); | 53 | irq = platform_get_irq(pdev, 0); |
54 | if (irq < 0) | 54 | if (irq < 0) |
55 | return irq; | 55 | return irq; |
56 | 56 | ||
57 | memset(&port, 0, sizeof(port)); | 57 | memset(&up, 0, sizeof(up)); |
58 | 58 | ||
59 | port.flags = ASYNC_SKIP_TEST | UPF_SHARE_IRQ | UPF_FIXED_TYPE; | 59 | up.port.flags = ASYNC_SKIP_TEST | UPF_SHARE_IRQ | UPF_FIXED_TYPE; |
60 | port.type = PORT_OCTEON; | 60 | up.port.type = PORT_OCTEON; |
61 | port.iotype = UPIO_MEM; | 61 | up.port.iotype = UPIO_MEM; |
62 | port.regshift = 3; | 62 | up.port.regshift = 3; |
63 | port.dev = &pdev->dev; | 63 | up.port.dev = &pdev->dev; |
64 | 64 | ||
65 | if (octeon_is_simulation()) | 65 | if (octeon_is_simulation()) |
66 | /* Make simulator output fast*/ | 66 | /* Make simulator output fast*/ |
67 | port.uartclk = 115200 * 16; | 67 | up.port.uartclk = 115200 * 16; |
68 | else | 68 | else |
69 | port.uartclk = octeon_get_io_clock_rate(); | 69 | up.port.uartclk = octeon_get_io_clock_rate(); |
70 | 70 | ||
71 | port.serial_in = octeon_serial_in; | 71 | up.port.serial_in = octeon_serial_in; |
72 | port.serial_out = octeon_serial_out; | 72 | up.port.serial_out = octeon_serial_out; |
73 | port.irq = irq; | 73 | up.port.irq = irq; |
74 | 74 | ||
75 | res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 75 | res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
76 | if (res_mem == NULL) { | 76 | if (res_mem == NULL) { |
77 | dev_err(&pdev->dev, "found no memory resource\n"); | 77 | dev_err(&pdev->dev, "found no memory resource\n"); |
78 | return -ENXIO; | 78 | return -ENXIO; |
79 | } | 79 | } |
80 | port.mapbase = res_mem->start; | 80 | up.port.mapbase = res_mem->start; |
81 | port.membase = ioremap(res_mem->start, resource_size(res_mem)); | 81 | up.port.membase = ioremap(res_mem->start, resource_size(res_mem)); |
82 | 82 | ||
83 | res = serial8250_register_port(&port); | 83 | res = serial8250_register_8250_port(&up); |
84 | 84 | ||
85 | return res >= 0 ? 0 : res; | 85 | return res >= 0 ? 0 : res; |
86 | } | 86 | } |