USB: ehci: omap: fix kernel panic with rmmod
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Thu, 18 Mar 2010 11:28:35 +0000 (16:28 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Apr 2010 22:18:21 +0000 (15:18 -0700)
commit18f91196b6e7994bd694a96a6c3b0ac1f3e81d82
tree67427edb4565bdb7f6138d98349e6fb6a2c34c04
parent4c1f5c88aaffacb2831353b6d3c1557be52071a2
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