small cpmac fixes
authorMatteo Croce <rootkit85@yahoo.it>
Thu, 20 Sep 2007 16:31:23 +0000 (16:31 +0000)
committerMatteo Croce <rootkit85@yahoo.it>
Thu, 20 Sep 2007 16:31:23 +0000 (16:31 +0000)
SVN-Revision: 8881

target/linux/ar7/files/drivers/net/cpmac.c

index 1134a03068025fcdf74c31e316d1239f58d2b366..cb2fb40976ad4e6c0a0d716d438cf4f5ff8ce3a7 100644 (file)
@@ -1023,7 +1023,6 @@ static int __devinit cpmac_probe(struct platform_device *pdev)
                return -ENOMEM;
        }
 
-       SET_MODULE_OWNER(dev);
        platform_set_drvdata(pdev, dev);
        priv = netdev_priv(dev);
 
@@ -1098,7 +1097,7 @@ static int __devexit cpmac_remove(struct platform_device *pdev)
 static struct platform_driver cpmac_driver = {
        .driver.name = "cpmac",
        .probe = cpmac_probe,
-       .remove = cpmac_remove,
+       .remove = __devexit_p(cpmac_remove),
 };
 
 int __devinit cpmac_init(void)