From: Sergei Shtylyov Date: Thu, 25 Mar 2010 11:14:29 +0000 (+0200) Subject: musb_core: don't prevent disabling clock on driver unload X-Git-Tag: v3.0~5087^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d0bfbf25957e04354389047f0e6ba520d58487c;p=platform%2Fkernel%2Flinux-amlogic.git musb_core: don't prevent disabling clock on driver unload Resetting 'musb->clock' to NULL in musb_shutdown() prevents musb_platform_exit() from properly disabling the clock when unloading the driver -- don't do it. Signed-off-by: Sergei Shtylyov Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 03544de..8b68f21 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -965,10 +965,8 @@ static void musb_shutdown(struct platform_device *pdev) spin_lock_irqsave(&musb->lock, flags); musb_platform_disable(musb); musb_generic_disable(musb); - if (musb->clock) { + if (musb->clock) clk_put(musb->clock); - musb->clock = NULL; - } spin_unlock_irqrestore(&musb->lock, flags); /* FIXME power down */