mirror of
https://github.com/openwrt/openwrt.git
synced 2025-12-29 05:30:01 +04:00
fix ethernet driver remove function to use the correct annotation (#6311)
SVN-Revision: 20350
This commit is contained in:
@@ -355,7 +355,7 @@
|
||||
+ 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);
|
||||
@@ -392,7 +392,7 @@
|
||||
+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)
|
||||
|
||||
@@ -355,7 +355,7 @@
|
||||
+ 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);
|
||||
@@ -392,7 +392,7 @@
|
||||
+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)
|
||||
|
||||
@@ -355,7 +355,7 @@
|
||||
+ 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);
|
||||
@@ -392,7 +392,7 @@
|
||||
+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)
|
||||
|
||||
@@ -355,7 +355,7 @@
|
||||
+ 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);
|
||||
@@ -392,7 +392,7 @@
|
||||
+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)
|
||||
|
||||
Reference in New Issue
Block a user