From bfc6514e948cd357191c115ac4dac4fc11937ac4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Wed, 21 Mar 2018 10:54:14 +0100 Subject: [PATCH] kernel: b53: fix compilation on BCM47XX MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes: drivers/net/phy/b53/b53_priv.h:325:2: error: enumeration value '' 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 --- 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 d148c0334992..a9296c9421ca 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 -- 2.30.2