diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-02-22 23:05:51 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-02-28 15:22:44 -0500 |
commit | 74888760d40b3ac9054f9c5fa07b566c0676ba2d (patch) | |
tree | ede65e8b5ad746ce6c04cbe77ceb5bbf6a6dc6fd /drivers/net/fec_mpc52xx_phy.c | |
parent | f07eb223a081b278be02a58394cb5fd66f1a1bbd (diff) |
dt/net: Eliminate users of of_platform_{,un}register_driver
Get rid of users of of_platform_driver in drivers/net. The
of_platform_{,un}register_driver functions are going away, so the
users need to be converted to using the platform_bus_type directly.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/net/fec_mpc52xx_phy.c')
-rw-r--r-- | drivers/net/fec_mpc52xx_phy.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/fec_mpc52xx_phy.c b/drivers/net/fec_mpc52xx_phy.c index 0b4cb6f15984..360a578c2bb7 100644 --- a/drivers/net/fec_mpc52xx_phy.c +++ b/drivers/net/fec_mpc52xx_phy.c | |||
@@ -61,8 +61,7 @@ static int mpc52xx_fec_mdio_write(struct mii_bus *bus, int phy_id, int reg, | |||
61 | data | FEC_MII_WRITE_FRAME); | 61 | data | FEC_MII_WRITE_FRAME); |
62 | } | 62 | } |
63 | 63 | ||
64 | static int mpc52xx_fec_mdio_probe(struct platform_device *of, | 64 | static int mpc52xx_fec_mdio_probe(struct platform_device *of) |
65 | const struct of_device_id *match) | ||
66 | { | 65 | { |
67 | struct device *dev = &of->dev; | 66 | struct device *dev = &of->dev; |
68 | struct device_node *np = of->dev.of_node; | 67 | struct device_node *np = of->dev.of_node; |
@@ -145,7 +144,7 @@ static struct of_device_id mpc52xx_fec_mdio_match[] = { | |||
145 | }; | 144 | }; |
146 | MODULE_DEVICE_TABLE(of, mpc52xx_fec_mdio_match); | 145 | MODULE_DEVICE_TABLE(of, mpc52xx_fec_mdio_match); |
147 | 146 | ||
148 | struct of_platform_driver mpc52xx_fec_mdio_driver = { | 147 | struct platform_driver mpc52xx_fec_mdio_driver = { |
149 | .driver = { | 148 | .driver = { |
150 | .name = "mpc5200b-fec-phy", | 149 | .name = "mpc5200b-fec-phy", |
151 | .owner = THIS_MODULE, | 150 | .owner = THIS_MODULE, |