projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7bc2fd
)
usb: chipidea: usbmisc: unset global varibale usbmisc on driver remove
author
Marc Kleine-Budde
<
[email protected]
>
Sat, 30 Mar 2013 10:53:57 +0000
(12:53 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sat, 30 Mar 2013 15:13:57 +0000
(08:13 -0700)
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 <
[email protected]
>
Signed-off-by: Michael Grzeschik <
[email protected]
>
Signed-off-by: Alexander Shishkin <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/chipidea/usbmisc_imx.c
patch
|
blob
|
history
diff --git
a/drivers/usb/chipidea/usbmisc_imx.c
b/drivers/usb/chipidea/usbmisc_imx.c
index 3c424469c7a5a2c854e537b6574423794ab733fe..fd4d3392125f43e551881258f5cdb8391d249417 100644
(file)
--- 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;
}