[atheros] fix ethernet driver remove function to use the correct annotation (#6311)
[openwrt/svn-archive/archive.git] / target / linux / atheros / patches-2.6.33 / 110-ar2313_ethernet.patch
index f24ee12b7c4bd7ed6139a57775f69d27f0ab03e5..6ce948efe61d9a7b8c02781dfc680d1bbbd162ea 100644 (file)
 +      tasklet_kill(&sp->rx_tasklet);
 +}
 +
-+static int __exit ar231x_remove(struct platform_device *pdev)
++static int __devexit ar231x_remove(struct platform_device *pdev)
 +{
 +      struct net_device *dev = platform_get_drvdata(pdev);
 +      struct ar231x_private *sp = netdev_priv(dev);
 +static struct platform_driver ar231x_driver = {
 +      .driver.name = "ar231x-eth",
 +      .probe = ar231x_probe,
-+      .remove = ar231x_remove,
++      .remove = __devexit_p(ar231x_remove),
 +};
 +
 +int __init ar231x_module_init(void)