ar71xx: fix MAC/MDIO reset mask handling
authorFelix Fietkau <nbd@openwrt.org>
Thu, 4 Aug 2011 17:36:23 +0000 (17:36 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 4 Aug 2011 17:36:23 +0000 (17:36 +0000)
SVN-Revision: 27894

target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c

index ce2af538cbd2d13e40c7eb198fc7d7fb75766125..1f9cdf3b7da4c2d6290690bec7d3afe77806e937 100644 (file)
@@ -452,9 +452,9 @@ static void ag71xx_hw_init(struct ag71xx *ag)
        ag71xx_sb(ag, AG71XX_REG_MAC_CFG1, MAC_CFG1_SR);
        udelay(20);
 
-       ar71xx_device_stop(pdata->reset_bit);
+       ar71xx_device_stop(reset_mask);
        mdelay(100);
-       ar71xx_device_start(pdata->reset_bit);
+       ar71xx_device_start(reset_mask);
        mdelay(200);
 
        /* setup MAC configuration registers */