diff options
author | Vineet Gupta <Vineet.Gupta1@synopsys.com> | 2013-01-11 01:20:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-16 01:15:48 -0500 |
commit | d6c0d06b341803fde45e592df4233579f3afb04e (patch) | |
tree | 62022d52d4f1d0d48425eb37bc0b3e484b5922ea /drivers/tty/serial/arc_uart.c | |
parent | e163d1f42bc2089efae58b4966287c4d3504d4c7 (diff) |
serial/arc-uart: platform_data order changed
* is_emulated is now 1st element, rather than last
* also tucked all platform data refs together
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: linux-serial@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/arc_uart.c')
-rw-r--r-- | drivers/tty/serial/arc_uart.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/tty/serial/arc_uart.c b/drivers/tty/serial/arc_uart.c index 9de26ba48d20..2db64105677b 100644 --- a/drivers/tty/serial/arc_uart.c +++ b/drivers/tty/serial/arc_uart.c | |||
@@ -533,7 +533,12 @@ arc_uart_init_one(struct platform_device *pdev, int dev_id) | |||
533 | struct arc_uart_port *uart = &arc_uart_ports[dev_id]; | 533 | struct arc_uart_port *uart = &arc_uart_ports[dev_id]; |
534 | 534 | ||
535 | plat_data = ((unsigned long *)(pdev->dev.platform_data)); | 535 | plat_data = ((unsigned long *)(pdev->dev.platform_data)); |
536 | uart->baud = plat_data[0]; | 536 | if (!plat_data) |
537 | return -ENODEV; | ||
538 | |||
539 | uart->is_emulated = !!plat_data[0]; /* workaround ISS bug */ | ||
540 | uart->port.uartclk = plat_data[1]; | ||
541 | uart->baud = plat_data[2]; | ||
537 | 542 | ||
538 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 543 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
539 | if (!res) | 544 | if (!res) |
@@ -556,7 +561,6 @@ arc_uart_init_one(struct platform_device *pdev, int dev_id) | |||
556 | uart->port.line = dev_id; | 561 | uart->port.line = dev_id; |
557 | uart->port.ops = &arc_serial_pops; | 562 | uart->port.ops = &arc_serial_pops; |
558 | 563 | ||
559 | uart->port.uartclk = plat_data[1]; | ||
560 | uart->port.fifosize = ARC_UART_TX_FIFO_SIZE; | 564 | uart->port.fifosize = ARC_UART_TX_FIFO_SIZE; |
561 | 565 | ||
562 | /* | 566 | /* |
@@ -565,9 +569,6 @@ arc_uart_init_one(struct platform_device *pdev, int dev_id) | |||
565 | */ | 569 | */ |
566 | uart->port.ignore_status_mask = 0; | 570 | uart->port.ignore_status_mask = 0; |
567 | 571 | ||
568 | /* Real Hardware vs. emulated to work around a bug */ | ||
569 | uart->is_emulated = !!plat_data[2]; | ||
570 | |||
571 | return 0; | 572 | return 0; |
572 | } | 573 | } |
573 | 574 | ||