usb: musb: Fix unbalanced pm_runtime_enable
authorTony Lindgren <tony@atomide.com>
Tue, 1 Dec 2015 05:37:13 +0000 (21:37 -0800)
committerFelipe Balbi <balbi@ti.com>
Wed, 16 Dec 2015 16:07:28 +0000 (10:07 -0600)
commit03e43528ab68449921201744a731c1bac50bc9d1
treeda59096840d20ed9a132052a756d79ec201c80a1
parent8055555fc4590fbda32d4bbf7888bdb2cd4b2b74
usb: musb: Fix unbalanced pm_runtime_enable

When reloading omap2430 kernel module we get a warning about
unbalanced pm_runtime_enable. Let's fix this. Note that we
need to do this after the child musb-core platform_device is
removed because of pm_runtime_irq_safe being set at the child.

Cc: Bin Liu <b-liu@ti.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: NeilBrown <neil@brown.name>
Reviewed-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/omap2430.c