aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic/files')
-rw-r--r--target/linux/generic/files/drivers/net/phy/b53/b53_common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c
index c74bf7fbcb..86e3a787fb 100644
--- a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c
+++ b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c
@@ -1155,8 +1155,13 @@ int b53_switch_init(struct b53_device *dev)
dev->enabled_ports &= ~BIT(4);
break;
default:
+/* On the BCM47XX SoCs this is the supported internal switch.*/
+#ifndef CONFIG_BCM47XX
/* BCM5325M */
return -EINVAL;
+#else
+ break;
+#endif
}
} else if (dev->chip_id == BCM53115_DEVICE_ID) {
u64 strap_value;