From: Felipe Balbi Date: Fri, 20 Dec 2013 21:00:48 +0000 (-0600) Subject: phy: core: properly handle failure of pm_runtime_get functions X-Git-Tag: v3.14-rc1~152^2~5^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cedb7f89d1e1f631b7e5d920fe1ea7f742d07f79;p=pandora-kernel.git phy: core: properly handle failure of pm_runtime_get functions In case pm_runtime_get*() fails, it still increments pm usage counter, so we *must* make sure to pm_runtime_put() even in those cases. This patch fixes that mistake the same way usbcore treats those possible failures. Signed-off-by: Felipe Balbi Signed-off-by: Kishon Vijay Abraham I --- Reading git-diff-tree failed