]> git.baikalelectronics.ru Git - kernel.git/commit
usb: common: usb-conn-gpio: Don't log an error on probe deferral
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Thu, 28 Nov 2019 13:43:57 +0000 (13:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Dec 2019 10:41:20 +0000 (11:41 +0100)
commita6137ef06d3ed0369775bb4888b0ceb62515beba
tree5277e5572f858893feec55b17b66d2a87ced4a73
parent3fe6a30e8ff692f8c8e6b49c1305d2dcfecea78d
usb: common: usb-conn-gpio: Don't log an error on probe deferral

This patch makes the printout of the error message for failing to get a
VBUS regulator handle conditional on the error code being something other
than -EPROBE_DEFER.

Deferral is a normal thing, we don't need an error message for this.

Cc: Chunfeng Yun <chunfeng.yun@mediatek.com>
Cc: Nagarjuna Kristam <nkristam@nvidia.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20191128134358.3880498-2-bryan.odonoghue@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/common/usb-conn-gpio.c