phylib: reset mii bus only if reset handler is registered
authorVladimir Zapolskiy <vz@mleia.com>
Mon, 5 Sep 2011 07:24:07 +0000 (07:24 +0000)
committerWolfgang Denk <wd@denx.de>
Fri, 9 Sep 2011 22:07:55 +0000 (00:07 +0200)
commite3a77218a256edbe201112a39beeed8adcabae3f
tree4ff351dfa6f5fcbc0a693cabfe6df24a5fca0034
parent46d7274cdcacc581bd02881e0aee4bb1a73e6f3a
phylib: reset mii bus only if reset handler is registered

This change allows to cope with a mii bus device registered using
miiphy_register(), which doesn't assign a default reset handler.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Acked-by: Detlev Zundel <dzu@denx.de>
drivers/net/phy/phy.c