]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
net: PHYLIB mdio fixes #2
authorKrzysztof Halasa <khc@pm.waw.pl>
Fri, 26 Dec 2008 00:50:41 +0000 (16:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Dec 2008 00:50:41 +0000 (16:50 -0800)
commit161c8d2f50109b44b664eaf23831ea1587979a61
tree1d9b2b4aaa72296f98c449e6f955ade61e84ed02
parentf7d1b9f5aafa371d7f51f644aa3c38bc914e9205
net: PHYLIB mdio fixes #2

The PHYLIB mdio code has more problems in error paths:
- mdiobus_release can be called before bus->state is set to
  MDIOBUS_REGISTERED
- mdiobus_scan allocates resources which need to be freed
- the comment is wrong, the resistors used are actually pull-ups.

Signed-off-by: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio_bus.c
drivers/net/phy/phy_device.c