tty: serial: altera_uart: Use port->regshift to store bus shift
authorTobias Klauser <tklauser@distanz.ch>
Wed, 9 Feb 2011 09:57:04 +0000 (10:57 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 19:31:58 +0000 (11:31 -0800)
commit2780ad42f5fe6739882603c61c8decba6e50eaa2
tree65d26144ecd8319d5d9243770d034ee4f1ba33ab
parente96fabd8791aad30a3c8a03919893ae3e2e3df25
tty: serial: altera_uart: Use port->regshift to store bus shift

Use the regshift member of struct uart_port to store the address stride
from platform data. This way we can save one dereference per call of
altera_uart_readl and altera_uart_writel.

This also allows us to use the driver without platform data, which is
needed for device tree support in the Nios2 port.

Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/altera_uart.c