From: Tobias Klauser Date: Wed, 9 Feb 2011 09:57:04 +0000 (+0100) Subject: tty: serial: altera_uart: Use port->regshift to store bus shift X-Git-Tag: v2.6.39-rc1~470^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2780ad42f5fe6739882603c61c8decba6e50eaa2;p=pandora-kernel.git 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 Signed-off-by: Tobias Klauser Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed