phy-core: phy_get: Leave error logging to the caller
authorHans de Goede <hdegoede@redhat.com>
Mon, 17 Feb 2014 08:59:22 +0000 (14:29 +0530)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:46 +0000 (11:47 +0900)
commita37ef4586f99c8de9470e87d5a15ece899d938ec
tree3eb50923711948494d1b141762f5bd7f1b6be880
parent7ed704134462c765082362ea8dd8d05cb04f935b
phy-core: phy_get: Leave error logging to the caller

In various cases errors may be expected, ie probe-deferral or a call to
phy_get from a driver where the use of a phy is optional.

Rather then adding all sort of complicated checks for this, and/or adding
special functions like devm_phy_get_optional, simply don't log an error,
and let deciding if get_phy returning an error really should result in a
dev_err up to the caller.

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 f40037fd3677ae240978f469cc4155bf3ca7c076]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Iafe801b4c0a2419abc8f20717a3f441a2d9a2ab1
drivers/phy/phy-core.c