diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-12-15 13:25:20 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-12-15 13:25:20 +0000 |
commit | 204fc6bed5f5f36eb8ca912acc0bc89d19eecce2 (patch) | |
tree | 8d2e2fe2de720853cdfb4cefe44f20d29396aba3 /target/linux/ar71xx/files/drivers | |
parent | d1f7783612f3596ff1a216e351d710857c7a5b3b (diff) | |
download | mtk-20170518-204fc6bed5f5f36eb8ca912acc0bc89d19eecce2.zip mtk-20170518-204fc6bed5f5f36eb8ca912acc0bc89d19eecce2.tar.gz mtk-20170518-204fc6bed5f5f36eb8ca912acc0bc89d19eecce2.tar.bz2 |
ar71xx: ag71xx: nuke ar7240sw_init
SVN-Revision: 29539
Diffstat (limited to 'target/linux/ar71xx/files/drivers')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c | 7 |
1 files changed, 1 insertions, 6 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 2224090..fec03a6 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); |