diff options
Diffstat (limited to 'drivers/net/ibm_newemac/mal.c')
-rw-r--r-- | drivers/net/ibm_newemac/mal.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/ibm_newemac/mal.c b/drivers/net/ibm_newemac/mal.c index d5717e2123e1..d268f404b7b0 100644 --- a/drivers/net/ibm_newemac/mal.c +++ b/drivers/net/ibm_newemac/mal.c | |||
@@ -517,8 +517,7 @@ void *mal_dump_regs(struct mal_instance *mal, void *buf) | |||
517 | return regs + 1; | 517 | return regs + 1; |
518 | } | 518 | } |
519 | 519 | ||
520 | static int __devinit mal_probe(struct platform_device *ofdev, | 520 | static int __devinit mal_probe(struct platform_device *ofdev) |
521 | const struct of_device_id *match) | ||
522 | { | 521 | { |
523 | struct mal_instance *mal; | 522 | struct mal_instance *mal; |
524 | int err = 0, i, bd_size; | 523 | int err = 0, i, bd_size; |
@@ -789,7 +788,7 @@ static struct of_device_id mal_platform_match[] = | |||
789 | {}, | 788 | {}, |
790 | }; | 789 | }; |
791 | 790 | ||
792 | static struct of_platform_driver mal_of_driver = { | 791 | static struct platform_driver mal_of_driver = { |
793 | .driver = { | 792 | .driver = { |
794 | .name = "mcmal", | 793 | .name = "mcmal", |
795 | .owner = THIS_MODULE, | 794 | .owner = THIS_MODULE, |
@@ -801,10 +800,10 @@ static struct of_platform_driver mal_of_driver = { | |||
801 | 800 | ||
802 | int __init mal_init(void) | 801 | int __init mal_init(void) |
803 | { | 802 | { |
804 | return of_register_platform_driver(&mal_of_driver); | 803 | return platform_driver_register(&mal_of_driver); |
805 | } | 804 | } |
806 | 805 | ||
807 | void mal_exit(void) | 806 | void mal_exit(void) |
808 | { | 807 | { |
809 | of_unregister_platform_driver(&mal_of_driver); | 808 | platform_driver_unregister(&mal_of_driver); |
810 | } | 809 | } |