diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-02-22 23:05:51 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-02-28 15:22:44 -0500 |
commit | 74888760d40b3ac9054f9c5fa07b566c0676ba2d (patch) | |
tree | ede65e8b5ad746ce6c04cbe77ceb5bbf6a6dc6fd /drivers/net/ucc_geth.c | |
parent | f07eb223a081b278be02a58394cb5fd66f1a1bbd (diff) |
dt/net: Eliminate users of of_platform_{,un}register_driver
Get rid of users of of_platform_driver in drivers/net. The
of_platform_{,un}register_driver functions are going away, so the
users need to be converted to using the platform_bus_type directly.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/net/ucc_geth.c')
-rw-r--r-- | drivers/net/ucc_geth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index 715e7b47e7e9..ef041057d9d3 100644 --- a/drivers/net/ucc_geth.c +++ b/drivers/net/ucc_geth.c | |||
@@ -3740,7 +3740,7 @@ static const struct net_device_ops ucc_geth_netdev_ops = { | |||
3740 | #endif | 3740 | #endif |
3741 | }; | 3741 | }; |
3742 | 3742 | ||
3743 | static int ucc_geth_probe(struct platform_device* ofdev, const struct of_device_id *match) | 3743 | static int ucc_geth_probe(struct platform_device* ofdev) |
3744 | { | 3744 | { |
3745 | struct device *device = &ofdev->dev; | 3745 | struct device *device = &ofdev->dev; |
3746 | struct device_node *np = ofdev->dev.of_node; | 3746 | struct device_node *np = ofdev->dev.of_node; |
@@ -3986,7 +3986,7 @@ static struct of_device_id ucc_geth_match[] = { | |||
3986 | 3986 | ||
3987 | MODULE_DEVICE_TABLE(of, ucc_geth_match); | 3987 | MODULE_DEVICE_TABLE(of, ucc_geth_match); |
3988 | 3988 | ||
3989 | static struct of_platform_driver ucc_geth_driver = { | 3989 | static struct platform_driver ucc_geth_driver = { |
3990 | .driver = { | 3990 | .driver = { |
3991 | .name = DRV_NAME, | 3991 | .name = DRV_NAME, |
3992 | .owner = THIS_MODULE, | 3992 | .owner = THIS_MODULE, |
@@ -4008,14 +4008,14 @@ static int __init ucc_geth_init(void) | |||
4008 | memcpy(&(ugeth_info[i]), &ugeth_primary_info, | 4008 | memcpy(&(ugeth_info[i]), &ugeth_primary_info, |
4009 | sizeof(ugeth_primary_info)); | 4009 | sizeof(ugeth_primary_info)); |
4010 | 4010 | ||
4011 | ret = of_register_platform_driver(&ucc_geth_driver); | 4011 | ret = platform_driver_register(&ucc_geth_driver); |
4012 | 4012 | ||
4013 | return ret; | 4013 | return ret; |
4014 | } | 4014 | } |
4015 | 4015 | ||
4016 | static void __exit ucc_geth_exit(void) | 4016 | static void __exit ucc_geth_exit(void) |
4017 | { | 4017 | { |
4018 | of_unregister_platform_driver(&ucc_geth_driver); | 4018 | platform_driver_unregister(&ucc_geth_driver); |
4019 | } | 4019 | } |
4020 | 4020 | ||
4021 | module_init(ucc_geth_init); | 4021 | module_init(ucc_geth_init); |