[openwrt/openwrt] kernel: b53: fix compilation on BCM47XX
LEDE Commits
lede-commits at lists.infradead.org
Wed Mar 21 02:55:54 PDT 2018
rmilecki pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/bfc6514e948cd357191c115ac4dac4fc11937ac4
commit bfc6514e948cd357191c115ac4dac4fc11937ac4
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Wed Mar 21 10:54:14 2018 +0100
kernel: b53: fix compilation on BCM47XX
This fixes:
drivers/net/phy/b53/b53_priv.h:325:2: error: enumeration value '<board>' not handled in switch [-Werror=switch]
errors.
Fixes: 0de2213eeade7 ("kernel: b53: look for NVRAM's "robo_reset" entry on every platform")
Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
target/linux/generic/files/drivers/net/phy/b53/b53_priv.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h b/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h
index d148c03..a9296c9 100644
--- a/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h
+++ b/target/linux/generic/files/drivers/net/phy/b53/b53_priv.h
@@ -326,6 +326,8 @@ static inline int b53_switch_get_reset_gpio(struct b53_device *dev)
case BCM47XX_BOARD_LINKSYS_WRT300NV11:
case BCM47XX_BOARD_LINKSYS_WRT310NV1:
return 8;
+ default:
+ break;
}
#endif
More information about the lede-commits
mailing list