diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2006-11-15 21:29:35 +0300 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-12-02 08:16:36 +0300 |
commit | a4f0c2ca8c475e00caa469b4574950852c376076 (patch) | |
tree | 4069f9aca7482ca4e97df3903e10ea68be6d1608 | |
parent | bca79eb7e7a1855947864952fcd878a5ae7b5c92 (diff) | |
download | linux-a4f0c2ca8c475e00caa469b4574950852c376076.tar.xz |
[PATCH] Adapt ucc_geth driver to use new of_platform_device support
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>
-rw-r--r-- | drivers/net/ucc_geth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index b37888011067..1f05511fa390 100644 --- a/drivers/net/ucc_geth.c +++ b/drivers/net/ucc_geth.c @@ -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); |