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/ibm_newemac/tah.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/ibm_newemac/tah.c')
-rw-r--r-- | drivers/net/ibm_newemac/tah.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/ibm_newemac/tah.c b/drivers/net/ibm_newemac/tah.c index 299aa49490c0..8ead6a96abaa 100644 --- a/drivers/net/ibm_newemac/tah.c +++ b/drivers/net/ibm_newemac/tah.c | |||
@@ -87,8 +87,7 @@ void *tah_dump_regs(struct platform_device *ofdev, void *buf) | |||
87 | return regs + 1; | 87 | return regs + 1; |
88 | } | 88 | } |
89 | 89 | ||
90 | static int __devinit tah_probe(struct platform_device *ofdev, | 90 | static int __devinit tah_probe(struct platform_device *ofdev) |
91 | const struct of_device_id *match) | ||
92 | { | 91 | { |
93 | struct device_node *np = ofdev->dev.of_node; | 92 | struct device_node *np = ofdev->dev.of_node; |
94 | struct tah_instance *dev; | 93 | struct tah_instance *dev; |
@@ -165,7 +164,7 @@ static struct of_device_id tah_match[] = | |||
165 | {}, | 164 | {}, |
166 | }; | 165 | }; |
167 | 166 | ||
168 | static struct of_platform_driver tah_driver = { | 167 | static struct platform_driver tah_driver = { |
169 | .driver = { | 168 | .driver = { |
170 | .name = "emac-tah", | 169 | .name = "emac-tah", |
171 | .owner = THIS_MODULE, | 170 | .owner = THIS_MODULE, |
@@ -177,10 +176,10 @@ static struct of_platform_driver tah_driver = { | |||
177 | 176 | ||
178 | int __init tah_init(void) | 177 | int __init tah_init(void) |
179 | { | 178 | { |
180 | return of_register_platform_driver(&tah_driver); | 179 | return platform_driver_register(&tah_driver); |
181 | } | 180 | } |
182 | 181 | ||
183 | void tah_exit(void) | 182 | void tah_exit(void) |
184 | { | 183 | { |
185 | of_unregister_platform_driver(&tah_driver); | 184 | platform_driver_unregister(&tah_driver); |
186 | } | 185 | } |