OSDN Git Service

Revert "usb: dwc3: Remove the checks of -ENOSYS"
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Wed, 15 Jun 2022 01:07:25 +0000 (18:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jun 2022 08:43:43 +0000 (10:43 +0200)
commitfb119dcb97f43cf2a6164094209a08e7e6cd6f08
tree06061db2fc7a98c9340498c403dedae669b52f1c
parent22fe2b36493f195b3f705043877f6c1456f1fd90
Revert "usb: dwc3: Remove the checks of -ENOSYS"

This reverts commit df22ecc41b54def624735b83784857e708bd1502.

If CONFIG_GENERIC_PHY is not enabled, then the devm_phy_get() returns
-ENOSYS. Don't remove this check.

Fixes: df22ecc41b54 ("usb: dwc3: Remove the checks of -ENOSYS")
Cc: Kushagra Verma <kushagra765@outlook.com>
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/eb1df7ef954b5af093c0528982db52a41df18615.1655255152.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c