sc16is7xx: support multiple devices
authorJakub Kicinski <kubakici@wp.pl>
Fri, 31 Jul 2015 12:44:23 +0000 (14:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 05:07:27 +0000 (22:07 -0700)
commitc64349722d141712d8500b5ad377d3117be46ba8
tree22ef39c3292a546a4c5c9ebab2568eca8454e102
parente92a886bf7841cd163860165db680cfbca5c7f0d
sc16is7xx: support multiple devices

We currently register the uart driver during device probe
which makes it hard to support more than one chip.
Move the driver registration to module init/exit time and
preallocate space for up to 8 lines (4-8 chips).

Reported-by: Michael Allwright <michael.allwright@upb.de>
Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c