Skip to contentSkip to conversation

net: dsa: b53: relax is63xx() condition

PATCH Superseded Álvaro Fernández Rojas 2 participants 2 messages Mar 8, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: dsa: b53: relax is63xx() condition

BCM63xx switches are present on bcm63xx and bmips devices.

---
 drivers/net/dsa/b53/b53_priv.h | 4 ----
 1 file changed, 4 deletions(-)
drivers/net/dsa/b53/b53_priv.h +0 -4
index 8419bb7f4505..82700a5714c1 100644
@@ -186,11 +186,7 @@ static inline int is531x5(struct b53_device *dev)
 
 static inline int is63xx(struct b53_device *dev)
 {
-#ifdef CONFIG_BCM63XX
 	return dev->chip_id == BCM63XX_DEVICE_ID;
-#else
-	return 0;
-#endif
 }
 
 static inline int is5301x(struct b53_device *dev)
Signature · 1 line
2.20.1
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Álvaro Fernández Rojas

BCM63xx switches are present on bcm63xx and bmips devices.

Since you are targeting net-next, please make it clear in the patch subject next time:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/networking/netdev-FAQ.rst#n28

Signature · 1 line
Florian