From 6c3361486c1c5f6535925b3e31ab40e1557de0bd Mon Sep 17 00:00:00 2001 From: Randy Li Date: Sun, 25 Sep 2016 02:50:17 +0800 Subject: [PATCH] UPSTREAM: phy: Add reset callback for not generic phy I forget to add a dummy function in case the CONFIG_GENERIC_PHY is disabled. Change-Id: Ic324387058ef260473fd4ad20ed43eff79044dfe Signed-off-by: Randy Li Signed-off-by: Shawn Lin (cherry picked from 98430c7aad6a3fdedcc78a0d6780dabb6580dc38) --- include/linux/phy/phy.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index cf867e7c0cc3..392bdd67a604 100644 --- a/include/linux/phy/phy.h +++ b/include/linux/phy/phy.h @@ -244,6 +244,13 @@ static inline int phy_set_mode(struct phy *phy, enum phy_mode mode) return -ENOSYS; } +static inline int phy_reset(struct phy *phy) +{ + if (!phy) + return 0; + return -ENOSYS; +} + static inline int phy_get_bus_width(struct phy *phy) { return -ENOSYS; -- 2.34.1