net: dsa: b53: relax is63xx() condition
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Wed, 17 Mar 2021 08:42:01 +0000 (09:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Mar 2021 19:05:46 +0000 (12:05 -0700)
BCM63xx switches are present on bcm63xx and bmips devices.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_priv.h

index 8419bb7..82700a5 100644 (file)
@@ -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)