phylib: Support registering a bunch of drivers
authorChristian Hohnstaedt <chohnstaedt@innominate.com>
Wed, 4 Jul 2012 05:44:34 +0000 (05:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jul 2012 07:10:56 +0000 (00:10 -0700)
commitd5bf9071e71a4db85a0eea6236ef94a29fc3eec9
treecf91cd107a5eda19dc8a1024b0c9b2115edf4988
parent567990cfccafc580b03b1fb501adf63132c12dcc
phylib: Support registering a bunch of drivers

If registering of one of them fails, all already registered drivers
of this module will be unregistered.

Use the new register/unregister functions in all drivers
registering more than one driver.

amd.c, realtek.c: Simplify: directly return registration result.

Tested with broadcom.c
All others compile-tested.

Signed-off-by: Christian Hohnstaedt <chohnstaedt@innominate.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
16 files changed:
drivers/net/phy/amd.c
drivers/net/phy/bcm63xx.c
drivers/net/phy/bcm87xx.c
drivers/net/phy/broadcom.c
drivers/net/phy/cicada.c
drivers/net/phy/davicom.c
drivers/net/phy/icplus.c
drivers/net/phy/lxt.c
drivers/net/phy/marvell.c
drivers/net/phy/micrel.c
drivers/net/phy/phy_device.c
drivers/net/phy/realtek.c
drivers/net/phy/smsc.c
drivers/net/phy/ste10Xp.c
drivers/net/phy/vitesse.c
include/linux/phy.h