Skip to content
Snippets Groups Projects
Commit 7936b511 authored by Niklaus Giger's avatar Niklaus Giger Committed by Wolfgang Denk
Browse files

Cleanup: use constant

parent 91525c67
No related branches found
No related tags found
No related merge requests found
......@@ -299,7 +299,7 @@ int miiphy_reset (char *devname, unsigned char addr)
debug ("PHY status read failed\n");
return (-1);
}
if (miiphy_write (devname, addr, PHY_BMCR, reg | 0x8000) != 0) {
if (miiphy_write (devname, addr, PHY_BMCR, reg | PHY_BMCR_RESET) != 0) {
debug ("PHY reset failed\n");
return (-1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment