]> 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)
commita3f309761ef6c589b4f0a488ce7471f7e7181d07
tree64efd975172e268ce12d3a92843dae175a623b10
parentf7e17dd3e950d9c55326b1e8a2c8ee93f32b7f2f
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