serial_cs: use pcmcia_loop_config() and pre-determined values
authorDominik Brodowski <linux@dominikbrodowski.net>
Sun, 18 Oct 2009 16:14:32 +0000 (18:14 +0200)
committerDominik Brodowski <linux@dominikbrodowski.net>
Sat, 24 Oct 2009 15:13:01 +0000 (17:13 +0200)
commit6ae3b84d979308671bf6f6a2123c258a8603d61c
tree63fdd28c8b92cd34fbaf7d4cac3644cc7b06822c
parentbb015f0c85362aa767f8f00f50a40d85e489414f
serial_cs: use pcmcia_loop_config() and pre-determined values

As the PCMCIA core already determines the multifunction count, the
ConfigBase address and the Present value, we can use them directly
instead of parsing the CIS again. By making use of pcmcia_loop_config(),
we can further remove the remaining call to pcmcia_get_first_tuple()
and friends.

CC: linux-serial@vger.kernel.org
CC: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/serial/serial_cs.c