]> git.baikalelectronics.ru Git - kernel.git/commit
USB: ehci: omap: fix kernel panic with rmmod
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Thu, 18 Mar 2010 11:28:35 +0000 (16:58 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Apr 2010 22:18:21 +0000 (15:18 -0700)
commit7825ff662a156853f3a1d9c955d3471e0a19b8b7
tree67427edb4565bdb7f6138d98349e6fb6a2c34c04
parentd3a304f32937e9feba5cb29216bcbd0a9b811c8d
USB: ehci: omap: fix kernel panic with rmmod

Sets the regulator values to NULL if they are not defined. This
is required to fix the kernel panic in exit path when EHCI module
is removed on the platforms where EHCI regulator are not set.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-omap.c