]> git.baikalelectronics.ru Git - kernel.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)
commite1d2f4b92ffe009dfe393651236d77df833121fc
tree64efd975172e268ce12d3a92843dae175a623b10
parentba09f2ce9eb9d2afc5be0badb0398de87c1dbee9
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