serial: exar: Fix mapping of port I/O resources
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 8 Feb 2017 16:09:03 +0000 (17:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Feb 2017 14:12:38 +0000 (15:12 +0100)
commit24572af4fb6ce0726dbe12b0286de11d25ff008b
treecba34e0bcf18123a8f0f33a80da2b9c9a16c259c
parent90afa5255f5c5ae67c869918e4c5f60b8580db70
serial: exar: Fix mapping of port I/O resources

pcim_iomap_table only returns the table of mapping, it does not perform
them. For that, we need to call pcim_iomap, but only if that mapping was
not done before.

Fixes: d0aeaa83f0b0 ("serial: exar: split out the exar code from 8250_pci")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_exar.c