diff options
Diffstat (limited to 'drivers/net/ibm_newemac/zmii.c')
-rw-r--r-- | drivers/net/ibm_newemac/zmii.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/ibm_newemac/zmii.c b/drivers/net/ibm_newemac/zmii.c index 34ed6ee8ca8a..97449e786d61 100644 --- a/drivers/net/ibm_newemac/zmii.c +++ b/drivers/net/ibm_newemac/zmii.c | |||
@@ -231,8 +231,7 @@ void *zmii_dump_regs(struct platform_device *ofdev, void *buf) | |||
231 | return regs + 1; | 231 | return regs + 1; |
232 | } | 232 | } |
233 | 233 | ||
234 | static int __devinit zmii_probe(struct platform_device *ofdev, | 234 | static int __devinit zmii_probe(struct platform_device *ofdev) |
235 | const struct of_device_id *match) | ||
236 | { | 235 | { |
237 | struct device_node *np = ofdev->dev.of_node; | 236 | struct device_node *np = ofdev->dev.of_node; |
238 | struct zmii_instance *dev; | 237 | struct zmii_instance *dev; |
@@ -312,7 +311,7 @@ static struct of_device_id zmii_match[] = | |||
312 | {}, | 311 | {}, |
313 | }; | 312 | }; |
314 | 313 | ||
315 | static struct of_platform_driver zmii_driver = { | 314 | static struct platform_driver zmii_driver = { |
316 | .driver = { | 315 | .driver = { |
317 | .name = "emac-zmii", | 316 | .name = "emac-zmii", |
318 | .owner = THIS_MODULE, | 317 | .owner = THIS_MODULE, |
@@ -324,10 +323,10 @@ static struct of_platform_driver zmii_driver = { | |||
324 | 323 | ||
325 | int __init zmii_init(void) | 324 | int __init zmii_init(void) |
326 | { | 325 | { |
327 | return of_register_platform_driver(&zmii_driver); | 326 | return platform_driver_register(&zmii_driver); |
328 | } | 327 | } |
329 | 328 | ||
330 | void zmii_exit(void) | 329 | void zmii_exit(void) |
331 | { | 330 | { |
332 | of_unregister_platform_driver(&zmii_driver); | 331 | platform_driver_unregister(&zmii_driver); |
333 | } | 332 | } |