Skip to content

Commit

Permalink
of_mdio: Don't phy_scan_fixups() twice
Browse files Browse the repository at this point in the history
The "phy_device_register()" call 5 lines down already calls
phy_scan_fixups(), there's no need to do it a second time.

Signed-off-by: Kyle Moffett <Kyle.D.Moffett@boeing.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Kyle Moffett authored and Grant Likely committed Oct 25, 2011
1 parent 2b0fce8 commit ae97159
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/of/of_mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np)
addr);
continue;
}
phy_scan_fixups(phy);

/* Associate the OF node with the device structure so it
* can be looked up later */
Expand Down

0 comments on commit ae97159

Please sign in to comment.