Dave Young e4abe6658a usb-serial: fix usb_serial_register bug when boot with nousb param
With "nousb" cmdline booting, built-in serial drivers (ie. airecable)
will trigger kernel oops.

Indeed, if nousb, usb_serial_init will failed, and the usb serial bus type
will not be registerd, then usb_serial_register call driver_register
which try to register the driver to a not registered bus.

Here add usb_disabled() check in usb_serial_register to fix it.

Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-03-24 16:20:33 -07:00
..
2008-07-22 13:03:22 -07:00
2008-07-22 13:03:22 -07:00
2008-07-22 13:03:22 -07:00
2009-03-17 14:01:28 -07:00
2008-07-22 13:03:23 -07:00
2008-07-22 13:03:23 -07:00
2008-07-22 13:03:27 -07:00
2008-02-01 14:34:47 -08:00
2008-07-22 13:03:22 -07:00
2008-10-13 09:51:41 -07:00
2008-10-13 09:51:41 -07:00
2009-01-02 10:19:36 -08:00
2007-08-22 14:27:43 -07:00
2008-07-22 13:03:22 -07:00