]> git.karo-electronics.de Git - karo-tx-linux.git/commit
TTY: synclink_cs, sanitize fail paths
authorJiri Slaby <jslaby@suse.cz>
Tue, 7 Aug 2012 19:47:52 +0000 (21:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Aug 2012 23:50:20 +0000 (16:50 -0700)
commit737586fe51e6d0031f83d781c0cb2f3abf8caada
tree64efd975172e268ce12d3a92843dae175a623b10
parentb19e2ca77ee4becadc85341bb0c1cee454dd4fd5
TTY: synclink_cs, sanitize fail paths

We will need to change the order of tty and pcmcia drivers
initializations (see the reason later in this series). And the fail
path handling is currently performed in a separate function that as
well takes care of proper deinitialization in module_exit. It is hard
to read and will need to be adjusted by our changes anyway. Instead,
get rid of this helper function and do the fail paths handling
directly in the init function. (And move the body of the function to
module_exit.)

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/pcmcia/synclink_cs.c