From: Roger Quadros Date: Thu, 10 Jul 2014 06:25:03 +0000 (+0530) Subject: phy: omap-usb2: Balance pm_runtime_enable() on probe failure and remove X-Git-Tag: omap-for-v3.17/fixes-against-rc2~301^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb82a3d846fab00c4b9ad6bbe5ade4fa5febc0af;p=pandora-kernel.git phy: omap-usb2: Balance pm_runtime_enable() on probe failure and remove If probe fails then we need to call pm_runtime_disable() to balance out the previous pm_runtime_enable() call. Else it will cause unbalanced pm_runtime_enable() call in the succeding probe call. This anomaly was observed when the call to devm_phy_create() failed with -EPROBE_DEFER. Balance out the pm_runtime_enable() call in .remove() as well. Signed-off-by: Roger Quadros Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed