diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2011-02-09 10:57:04 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-17 20:31:58 +0100 |
commit | 2780ad42f5fe6739882603c61c8decba6e50eaa2 (patch) | |
tree | 65d26144ecd8319d5d9243770d034ee4f1ba33ab /drivers/tty/serial/crisv10.c | |
parent | tty: serial: altera_uart: Handle pdev->id == -1 in altera_uart_remove (diff) | |
download | linux-2780ad42f5fe6739882603c61c8decba6e50eaa2.tar.xz linux-2780ad42f5fe6739882603c61c8decba6e50eaa2.zip |
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>
Diffstat (limited to 'drivers/tty/serial/crisv10.c')
0 files changed, 0 insertions, 0 deletions