aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ibm_newemac/rgmii.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ibm_newemac/rgmii.c')
-rw-r--r--drivers/net/ibm_newemac/rgmii.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/ibm_newemac/rgmii.c b/drivers/net/ibm_newemac/rgmii.c
index dd61798897ac..4fa53f3def64 100644
--- a/drivers/net/ibm_newemac/rgmii.c
+++ b/drivers/net/ibm_newemac/rgmii.c
@@ -228,8 +228,7 @@ void *rgmii_dump_regs(struct platform_device *ofdev, void *buf)
228} 228}
229 229
230 230
231static int __devinit rgmii_probe(struct platform_device *ofdev, 231static int __devinit rgmii_probe(struct platform_device *ofdev)
232 const struct of_device_id *match)
233{ 232{
234 struct device_node *np = ofdev->dev.of_node; 233 struct device_node *np = ofdev->dev.of_node;
235 struct rgmii_instance *dev; 234 struct rgmii_instance *dev;
@@ -318,7 +317,7 @@ static struct of_device_id rgmii_match[] =
318 {}, 317 {},
319}; 318};
320 319
321static struct of_platform_driver rgmii_driver = { 320static struct platform_driver rgmii_driver = {
322 .driver = { 321 .driver = {
323 .name = "emac-rgmii", 322 .name = "emac-rgmii",
324 .owner = THIS_MODULE, 323 .owner = THIS_MODULE,
@@ -330,10 +329,10 @@ static struct of_platform_driver rgmii_driver = {
330 329
331int __init rgmii_init(void) 330int __init rgmii_init(void)
332{ 331{
333 return of_register_platform_driver(&rgmii_driver); 332 return platform_driver_register(&rgmii_driver);
334} 333}
335 334
336void rgmii_exit(void) 335void rgmii_exit(void)
337{ 336{
338 of_unregister_platform_driver(&rgmii_driver); 337 platform_driver_unregister(&rgmii_driver);
339} 338}