diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-11-08 00:33:20 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-11-08 00:33:20 +0000 |
commit | 7a2efd8c28a688a00cbcfdee6a8d313d0f41bc70 (patch) | |
tree | f33c31119c10943151dcdeb3ed97335d7954ff8c | |
parent | 94309039b773185d3858d0d2f79808784186cb21 (diff) | |
download | mtk-20170518-7a2efd8c28a688a00cbcfdee6a8d313d0f41bc70.zip mtk-20170518-7a2efd8c28a688a00cbcfdee6a8d313d0f41bc70.tar.gz mtk-20170518-7a2efd8c28a688a00cbcfdee6a8d313d0f41bc70.tar.bz2 |
ar71xx: remove dead code
SVN-Revision: 28851
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c index 5e02303..8e15849 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c @@ -397,21 +397,6 @@ int ar7240sw_phy_write(struct mii_bus *mii, unsigned phy_addr, return ret; } -static int ar7240sw_capture_stats(struct ar7240sw *as) -{ - struct mii_bus *mii = as->mii_bus; - int ret; - - /* Capture the hardware statistics for all ports */ - ar7240sw_reg_write(mii, AR7240_REG_MIB_FUNCTION0, - (AR7240_MIB_FUNC_CAPTURE << AR7240_MIB_FUNC_S)); - - /* Wait for the capturing to complete. */ - ret = ar7240sw_reg_wait(mii, AR7240_REG_MIB_FUNCTION0, - AR7240_MIB_BUSY, 0, 10); - return ret; -} - static void ar7240sw_disable_port(struct ar7240sw *as, unsigned port) { ar7240sw_reg_write(as->mii_bus, AR7240_REG_PORT_CTRL(port), |