of/device: Replace struct of_device with struct platform_device
[deliverable/linux.git] / drivers / net / greth.c
index 3a029d02c2b410405dd37c5e6b1b7e8e4ccb63c9..9ec4b7f28ca40f8003b5a0147458fa0b9e6f6fec 100644 (file)
@@ -1373,7 +1373,7 @@ error:
 }
 
 /* Initialize the GRETH MAC */
-static int __devinit greth_of_probe(struct of_device *ofdev, const struct of_device_id *match)
+static int __devinit greth_of_probe(struct platform_device *ofdev, const struct of_device_id *match)
 {
        struct net_device *dev;
        struct greth_private *greth;
@@ -1555,7 +1555,6 @@ static int __devinit greth_of_probe(struct of_device *ofdev, const struct of_dev
        }
 
        /* setup NAPI */
-       memset(&greth->napi, 0, sizeof(greth->napi));
        netif_napi_add(dev, &greth->napi, greth_poll, 64);
 
        return 0;
@@ -1573,7 +1572,7 @@ error1:
        return err;
 }
 
-static int __devexit greth_of_remove(struct of_device *of_dev)
+static int __devexit greth_of_remove(struct platform_device *of_dev)
 {
        struct net_device *ndev = dev_get_drvdata(&of_dev->dev);
        struct greth_private *greth = netdev_priv(ndev);
This page took 0.025227 seconds and 5 git commands to generate.