sparc32,leon: Fixed APBUART frequency detection
authorDaniel Hellstrom <daniel@gaisler.com>
Wed, 30 Mar 2011 01:12:41 +0000 (01:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Mar 2011 11:28:54 +0000 (04:28 -0700)
commitc897dcf6311ea9c8d24e96cc7f7fe9de58a0a6a2
tree97775a7437b61aa344ed8652584e24c17a1c89b9
parent10544f128c338aeb7f63c002ad7eee67aa0e6acf
sparc32,leon: Fixed APBUART frequency detection

The UARTs may be located on different APB buses, thus have

different UART clock frequency. The system frequency is not
the same (but often) as the UART frequency, rather the APB bus
frequency that the APBUART is located at has the same
frequency, so this looks at the "freq" property instead.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/tty/serial/apbuart.c