diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index e694d4008c4a9121cbf1c8b6b0731f890b3570b3..10888a717860cf4d8a0afd6341be25db39ea5f2c 100644 --- a/include/linux/phy/phy.h +++ b/include/linux/phy/phy.h @@ -291,7 +291,7 @@ static inline struct phy *devm_phy_get(struct device *dev, const char *string) static inline struct phy *devm_phy_optional_get(struct device *dev, const char *string) { - return ERR_PTR(-ENOSYS); + return NULL; } static inline struct phy *devm_of_phy_get(struct device *dev,