From 24cbe27bb7ff83b9bb3a2640904bced1a2d14a8d Mon Sep 17 00:00:00 2001 From: Chuanhong Guo Date: Tue, 17 Jul 2018 17:09:13 +0800 Subject: ath79: ag71xx: Remove ar7240_set_addr and ag71xx_ar7240_start The builtin switch has it's initial valid mac address(00:00:01:00:00:00). Since the builtin switch is an independent device, setting mac address of gmac1 to builtin switch isn't a good idea and this makes it impossilbe to split builtin switch apart as an independent platform device. Remove these functions and apply default VLAN during initialization as a preparation for further driver splitting. Signed-off-by: Chuanhong Guo --- .../linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c | 1 - 1 file changed, 1 deletion(-) (limited to 'target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c') diff --git a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c index acc0f089d0..72cfd6cf15 100644 --- a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c +++ b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c @@ -735,7 +735,6 @@ static int ag71xx_open(struct net_device *dev) if (ret) goto err; - ag71xx_ar7240_start(ag); phy_start(ag->phy_dev); return 0; -- cgit v1.2.3