Skip to content

Commit

Permalink
usb: chipidea: usbmisc: unset global varibale usbmisc on driver remove
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marc Kleine-Budde authored and Greg Kroah-Hartman committed Mar 30, 2013
1 parent a7bc2fd commit d48a24d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/chipidea/usbmisc_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d48a24d

Please sign in to comment.