[PATCH] Adapt ucc_geth driver to use new of_platform_device support
authorKim Phillips <kim.phillips@freescale.com>
Wed, 15 Nov 2006 18:29:35 +0000 (12:29 -0600)
committerJeff Garzik <jeff@garzik.org>
Sat, 2 Dec 2006 05:16:36 +0000 (00:16 -0500)
Include of_platform header, and use
new of_[un]register_platform_driver() fns.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/ucc_geth.c

index b37888011067f2711b8b954213a7e86243ac788c..1f05511fa390f49e816d2ef77d6c12c5d68f2564 100644 (file)
@@ -30,7 +30,7 @@
 #include <linux/ethtool.h>
 #include <linux/mii.h>
 
-#include <asm/of_device.h>
+#include <asm/of_platform.h>
 #include <asm/uaccess.h>
 #include <asm/irq.h>
 #include <asm/io.h>
@@ -4301,12 +4301,12 @@ static int __init ucc_geth_init(void)
                memcpy(&(ugeth_info[i]), &ugeth_primary_info,
                       sizeof(ugeth_primary_info));
 
-       return of_register_driver(&ucc_geth_driver);
+       return of_register_platform_driver(&ucc_geth_driver);
 }
 
 static void __exit ucc_geth_exit(void)
 {
-       of_unregister_driver(&ucc_geth_driver);
+       of_unregister_platform_driver(&ucc_geth_driver);
 }
 
 module_init(ucc_geth_init);