phy: core: properly handle failure of pm_runtime_get functions
authorFelipe Balbi <balbi@ti.com>
Fri, 20 Dec 2013 21:00:48 +0000 (15:00 -0600)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 24 Dec 2013 18:22:58 +0000 (23:52 +0530)
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 <balbi@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-core.c

Simple merge