Skip to content

Commit

Permalink
[PATCH] Adapt ucc_geth driver to use new of_platform_device support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kim Phillips authored and Jeff Garzik committed Dec 2, 2006
1 parent bca79eb commit a4f0c2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/ucc_geth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a4f0c2c

Please sign in to comment.