diff options
author | Florian Fainelli <florian@openwrt.org> | 2010-03-21 16:05:27 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2010-03-21 16:05:27 +0000 |
commit | aef7bbc78f0ae2bbf24f044d4a1254aa2a523a18 (patch) | |
tree | f9c7bdb319fbab1b34cef6e57472f21178b299f8 /target/linux/atheros/patches-2.6.33/110-ar2313_ethernet.patch | |
parent | 28e68dd8c7267113ca8407d240a6a21173228ede (diff) | |
download | upstream-aef7bbc78f0ae2bbf24f044d4a1254aa2a523a18.tar.gz upstream-aef7bbc78f0ae2bbf24f044d4a1254aa2a523a18.tar.bz2 upstream-aef7bbc78f0ae2bbf24f044d4a1254aa2a523a18.zip |
fix ethernet driver remove function to use the correct annotation (#6311)
SVN-Revision: 20350
Diffstat (limited to 'target/linux/atheros/patches-2.6.33/110-ar2313_ethernet.patch')
-rw-r--r-- | target/linux/atheros/patches-2.6.33/110-ar2313_ethernet.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/atheros/patches-2.6.33/110-ar2313_ethernet.patch b/target/linux/atheros/patches-2.6.33/110-ar2313_ethernet.patch index f24ee12b7c..6ce948efe6 100644 --- a/target/linux/atheros/patches-2.6.33/110-ar2313_ethernet.patch +++ b/target/linux/atheros/patches-2.6.33/110-ar2313_ethernet.patch @@ -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) |