From: Kim Phillips Date: Wed, 15 Nov 2006 18:29:35 +0000 (-0600) Subject: [PATCH] Adapt ucc_geth driver to use new of_platform_device support X-Git-Tag: v2.6.20-rc2~6^2~13^2~468^2~30 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a4f0c2ca8c475e00caa469b4574950852c376076;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index b3788801106..1f05511fa39 100644 --- a/drivers/net/ucc_geth.c +++ b/drivers/net/ucc_geth.c @@ -30,7 +30,7 @@ #include #include -#include +#include #include #include #include @@ -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);