diff options
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 299aa49490c..8ead6a96aba 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 | } |