aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ucc_geth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ucc_geth.c')
-rw-r--r--drivers/net/ucc_geth.c8
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
3743static int ucc_geth_probe(struct platform_device* ofdev, const struct of_device_id *match) 3743static 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
3987MODULE_DEVICE_TABLE(of, ucc_geth_match); 3987MODULE_DEVICE_TABLE(of, ucc_geth_match);
3988 3988
3989static struct of_platform_driver ucc_geth_driver = { 3989static 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
4016static void __exit ucc_geth_exit(void) 4016static 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
4021module_init(ucc_geth_init); 4021module_init(ucc_geth_init);