Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354764
b: refs/heads/master
c: d6c0d06
h: refs/heads/master
v: v3
  • Loading branch information
Vineet Gupta authored and Greg Kroah-Hartman committed Jan 16, 2013
1 parent 6b7e5e3 commit eccfd99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e163d1f42bc2089efae58b4966287c4d3504d4c7
refs/heads/master: d6c0d06b341803fde45e592df4233579f3afb04e
11 changes: 6 additions & 5 deletions trunk/drivers/tty/serial/arc_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;

/*
Expand All @@ -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;
}

Expand Down

0 comments on commit eccfd99

Please sign in to comment.