mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 09:43:59 +08:00
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>
This commit is contained in:
parent
e163d1f42b
commit
d6c0d06b34
@ -533,7 +533,12 @@ arc_uart_init_one(struct platform_device *pdev, int dev_id)
|
||||
struct arc_uart_port *uart = &arc_uart_ports[dev_id];
|
||||
|
||||
plat_data = ((unsigned long *)(pdev->dev.platform_data));
|
||||
uart->baud = plat_data[0];
|
||||
if (!plat_data)
|
||||
return -ENODEV;
|
||||
|
||||
uart->is_emulated = !!plat_data[0]; /* workaround ISS bug */
|
||||
uart->port.uartclk = plat_data[1];
|
||||
uart->baud = plat_data[2];
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
if (!res)
|
||||
@ -556,7 +561,6 @@ arc_uart_init_one(struct platform_device *pdev, int dev_id)
|
||||
uart->port.line = dev_id;
|
||||
uart->port.ops = &arc_serial_pops;
|
||||
|
||||
uart->port.uartclk = plat_data[1];
|
||||
uart->port.fifosize = ARC_UART_TX_FIFO_SIZE;
|
||||
|
||||
/*
|
||||
@ -565,9 +569,6 @@ arc_uart_init_one(struct platform_device *pdev, int dev_id)
|
||||
*/
|
||||
uart->port.ignore_status_mask = 0;
|
||||
|
||||
/* Real Hardware vs. emulated to work around a bug */
|
||||
uart->is_emulated = !!plat_data[2];
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user