From ba116ade9e519a53d19dd9c28bd80ae9c6e262a2 Mon Sep 17 00:00:00 2001 From: juhosg Date: Thu, 15 Dec 2011 13:25:20 +0000 Subject: ar71xx: ag71xx: nuke ar7240sw_init git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29539 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'target/linux/ar71xx/files/drivers/net/ag71xx') 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 22240902b..fec03a671 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c @@ -219,11 +219,6 @@ struct ar7240sw_hw_stat { static DEFINE_MUTEX(reg_mutex); -static inline void ar7240sw_init(struct ar7240sw *as, struct mii_bus *mii) -{ - as->mii_bus = mii; -} - static inline u16 mk_phy_addr(u32 reg) { return 0x17 & ((reg >> 4) | 0x10); @@ -849,7 +844,7 @@ static struct ar7240sw *ar7240_probe(struct ag71xx *ag) if (!as) return NULL; - ar7240sw_init(as, mii); + as->mii_bus = mii; ctrl = ar7240sw_reg_read(mii, AR7240_REG_MASK_CTRL); -- cgit v1.2.3