Skip to contentSkip to conversation

Adapt ucc_geth driver to use new of_platform_device support

PATCH New Kim Phillips 1 participant 1 message Nov 15, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Adapt ucc_geth driver to use new of_platform_device support

Include of_platform header, and use
new of_[un]register_platform_driver() fns.

---

please consider for 2.6.20

 drivers/net/ucc_geth.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/ucc_geth.c +3 -3
index b378880..1f05511 100644
@@ -30,7 +30,7 @@ #include <linux/fsl_devices.h>
 #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);
Signature · 1 line
1.4.2.3