mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
drivers/net/arm/at91_ether.c: logical/bitand typo in function reset_phy()
include/linux/mii.h:48:#define BMCR_RESET 0x8000 The function reset_phy() is in "#if 0" inactivated code Replace logical "&&" by bit "&" before BMCR_RESET Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7b9b09436b
commit
10a5a80b3c
@ -384,7 +384,7 @@ static void reset_phy(struct net_device *dev)
|
||||
/* Wait until PHY reset is complete */
|
||||
do {
|
||||
read_phy(lp->phy_address, MII_BMCR, &bmcr);
|
||||
} while (!(bmcr && BMCR_RESET));
|
||||
} while (!(bmcr & BMCR_RESET));
|
||||
|
||||
disable_mdi();
|
||||
spin_unlock_irq(&lp->lock);
|
||||
|
Loading…
Reference in New Issue
Block a user