1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 20:29:41 +02:00

[atheros] fix ethernet driver remove function to use the correct annotation (#6311)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20350 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2010-03-21 16:05:27 +00:00
parent 8ffe821c14
commit a3d62deca2
4 changed files with 8 additions and 8 deletions

View File

@ -355,7 +355,7 @@
+ tasklet_kill(&sp->rx_tasklet); + 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 net_device *dev = platform_get_drvdata(pdev);
+ struct ar231x_private *sp = netdev_priv(dev); + struct ar231x_private *sp = netdev_priv(dev);
@ -392,7 +392,7 @@
+static struct platform_driver ar231x_driver = { +static struct platform_driver ar231x_driver = {
+ .driver.name = "ar231x-eth", + .driver.name = "ar231x-eth",
+ .probe = ar231x_probe, + .probe = ar231x_probe,
+ .remove = ar231x_remove, + .remove = __devexit_p(ar231x_remove),
+}; +};
+ +
+int __init ar231x_module_init(void) +int __init ar231x_module_init(void)

View File

@ -355,7 +355,7 @@
+ tasklet_kill(&sp->rx_tasklet); + 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 net_device *dev = platform_get_drvdata(pdev);
+ struct ar231x_private *sp = netdev_priv(dev); + struct ar231x_private *sp = netdev_priv(dev);
@ -392,7 +392,7 @@
+static struct platform_driver ar231x_driver = { +static struct platform_driver ar231x_driver = {
+ .driver.name = "ar231x-eth", + .driver.name = "ar231x-eth",
+ .probe = ar231x_probe, + .probe = ar231x_probe,
+ .remove = ar231x_remove, + .remove = __devexit_p(ar231x_remove),
+}; +};
+ +
+int __init ar231x_module_init(void) +int __init ar231x_module_init(void)

View File

@ -355,7 +355,7 @@
+ tasklet_kill(&sp->rx_tasklet); + 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 net_device *dev = platform_get_drvdata(pdev);
+ struct ar231x_private *sp = netdev_priv(dev); + struct ar231x_private *sp = netdev_priv(dev);
@ -392,7 +392,7 @@
+static struct platform_driver ar231x_driver = { +static struct platform_driver ar231x_driver = {
+ .driver.name = "ar231x-eth", + .driver.name = "ar231x-eth",
+ .probe = ar231x_probe, + .probe = ar231x_probe,
+ .remove = ar231x_remove, + .remove = __devexit_p(ar231x_remove),
+}; +};
+ +
+int __init ar231x_module_init(void) +int __init ar231x_module_init(void)

View File

@ -355,7 +355,7 @@
+ tasklet_kill(&sp->rx_tasklet); + 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 net_device *dev = platform_get_drvdata(pdev);
+ struct ar231x_private *sp = netdev_priv(dev); + struct ar231x_private *sp = netdev_priv(dev);
@ -392,7 +392,7 @@
+static struct platform_driver ar231x_driver = { +static struct platform_driver ar231x_driver = {
+ .driver.name = "ar231x-eth", + .driver.name = "ar231x-eth",
+ .probe = ar231x_probe, + .probe = ar231x_probe,
+ .remove = ar231x_remove, + .remove = __devexit_p(ar231x_remove),
+}; +};
+ +
+int __init ar231x_module_init(void) +int __init ar231x_module_init(void)