phy-core: Don't propagate -ENOSUPP from phy_pm_runtime_get_sync to caller
authorHans de Goede <hdegoede@redhat.com>
Mon, 17 Feb 2014 08:59:23 +0000 (14:29 +0530)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:46 +0000 (11:47 +0900)
commitd0b2fe36f3cca7e3bcf04edee24a909614a8953f
treebb71cf2ede12d61adcfb946fe973a21c949e2bcc
parenta37ef4586f99c8de9470e87d5a15ece899d938ec
phy-core: Don't propagate -ENOSUPP from phy_pm_runtime_get_sync to caller

The phy-core allows phy_init and phy_power_on to be called multiple times,
but before this patch -ENOSUPP from phy_pm_runtime_get_sync would be
propagated to the caller for the 2nd and later calls.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[backport from upstream commit 767a1b5d6ec4ac5335dde17100880347ed154ce2]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: If65ef9e8d070b4f3d601e139a28246fab36cb40e
drivers/phy/phy-core.c