]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 20:13:15 +0000 (12:13 -0800)
commitd60822f219adba93b1c7a4a786f4c6af3ba7f45f
treeaa7cd5fc27b062f4e7b8c06b51e7459b3ef3611e
parentdc73a79dc3e8c30443d054e3ef2c5815a2836b0a
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>
drivers/phy/phy-core.c