diff options
Diffstat (limited to 'drivers/net/greth.c')
-rw-r--r-- | drivers/net/greth.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/greth.c b/drivers/net/greth.c index f37a4c143ddd..4d09eab3548e 100644 --- a/drivers/net/greth.c +++ b/drivers/net/greth.c | |||
@@ -1555,7 +1555,6 @@ static int __devinit greth_of_probe(struct of_device *ofdev, const struct of_dev | |||
1555 | } | 1555 | } |
1556 | 1556 | ||
1557 | /* setup NAPI */ | 1557 | /* setup NAPI */ |
1558 | memset(&greth->napi, 0, sizeof(greth->napi)); | ||
1559 | netif_napi_add(dev, &greth->napi, greth_poll, 64); | 1558 | netif_napi_add(dev, &greth->napi, greth_poll, 64); |
1560 | 1559 | ||
1561 | return 0; | 1560 | return 0; |
@@ -1607,14 +1606,13 @@ static struct of_device_id greth_of_match[] = { | |||
1607 | MODULE_DEVICE_TABLE(of, greth_of_match); | 1606 | MODULE_DEVICE_TABLE(of, greth_of_match); |
1608 | 1607 | ||
1609 | static struct of_platform_driver greth_of_driver = { | 1608 | static struct of_platform_driver greth_of_driver = { |
1610 | .name = "grlib-greth", | 1609 | .driver = { |
1611 | .match_table = greth_of_match, | 1610 | .name = "grlib-greth", |
1611 | .owner = THIS_MODULE, | ||
1612 | .of_match_table = greth_of_match, | ||
1613 | }, | ||
1612 | .probe = greth_of_probe, | 1614 | .probe = greth_of_probe, |
1613 | .remove = __devexit_p(greth_of_remove), | 1615 | .remove = __devexit_p(greth_of_remove), |
1614 | .driver = { | ||
1615 | .owner = THIS_MODULE, | ||
1616 | .name = "grlib-greth", | ||
1617 | }, | ||
1618 | }; | 1616 | }; |
1619 | 1617 | ||
1620 | static int __init greth_init(void) | 1618 | static int __init greth_init(void) |