summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2013-03-30 11:53:57 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-30 16:13:57 +0100
commitd48a24dbc0d3f21cbd594bcc2553d40cc5ed4fd9 (patch)
tree29266b3a31f12570b5a9b8c2dee9448638b7d042 /drivers/usb/chipidea
parentusb: chipidea: usbmisc: rename file, struct and functions to usbmisc_imx (diff)
downloadlinux-d48a24dbc0d3f21cbd594bcc2553d40cc5ed4fd9.tar.xz
linux-d48a24dbc0d3f21cbd594bcc2553d40cc5ed4fd9.zip
usb: chipidea: usbmisc: unset global varibale usbmisc on driver remove
The probe function checks usbmisc to be NULL in the beginning. Without this patch the can only be loaded once. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea')
-rw-r--r--drivers/usb/chipidea/usbmisc_imx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c
index 3c424469c7a5..fd4d3392125f 100644
--- a/drivers/usb/chipidea/usbmisc_imx.c
+++ b/drivers/usb/chipidea/usbmisc_imx.c
@@ -131,6 +131,7 @@ static int usbmisc_imx_remove(struct platform_device *pdev)
{
usbmisc_unset_ops(&imx6q_usbmisc_ops);
clk_disable_unprepare(usbmisc->clk);
+ usbmisc = NULL;
return 0;
}