MT7530_ATTR_ENABLE_VLAN,
};
-#if IS_ENABLED(CONFIG_SWCONFIG)
+#if IS_REACHABLE(CONFIG_SWCONFIG)
struct mt7530_port_entry {
u16 pvid;
bool mirror_rx;
struct mt7530_priv {
void __iomem *base;
struct mii_bus *bus;
-#if IS_ENABLED(CONFIG_SWCONFIG)
+#if IS_REACHABLE(CONFIG_SWCONFIG)
struct switch_dev swdev;
u8 mirror_dest_port;
#endif /* CONFIG_SWCONFIG */
};
-#if IS_ENABLED(CONFIG_SWCONFIG)
+#if IS_REACHABLE(CONFIG_SWCONFIG)
struct mt7530_mapping {
char *name;
u16 pvids[MT7530_NUM_PORTS];
iowrite32(val, priv->base + reg);
}
-#if IS_ENABLED(CONFIG_SWCONFIG)
+#if IS_REACHABLE(CONFIG_SWCONFIG)
static void
mt7530_vtcr(struct mt7530_priv *priv, u32 cmd, u32 val)
{
bool swconfig_active = false;
const char *name = bus ? "mt7530" : "mt7620";
int i;
-#if IS_ENABLED(CONFIG_SWCONFIG)
+#if IS_REACHABLE(CONFIG_SWCONFIG)
struct switch_dev *swdev;
struct mt7530_mapping *map;
int ret;
mt7530->base = base;
mt7530->bus = bus;
-#if IS_ENABLED(CONFIG_SWCONFIG)
+#if IS_REACHABLE(CONFIG_SWCONFIG)
mt7530->global_vlan_enable = vlan;
swdev = &mt7530->swdev;
dev_info(dev, "swconfig disabled, MAC learning disabled on all ports\n");
}
#else
- dev_info(dev, "swconfig support not built in, MAC learning disabled on all ports\n");
+ dev_info(dev, "swconfig support not reachable, MAC learning disabled on all ports\n");
#endif /* CONFIG_SWCONFIG */
if (!swconfig_active) {