diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-03-02 02:24:47 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-02 23:33:49 +0100 |
commit | be12502e2e64854dbe0a2ddff6d26ec1143d6890 (patch) | |
tree | 147e0110de4d5228f09def2d8c112f69fb62b87c /drivers/net/ethernet/faraday/ftmac100.c | |
parent | tcp: fix potential double free issue for fastopen_req (diff) | |
download | linux-be12502e2e64854dbe0a2ddff6d26ec1143d6890.tar.xz linux-be12502e2e64854dbe0a2ddff6d26ec1143d6890.zip |
drivers: net: ethernet: remove incorrect __exit markups
Even if bus is not hot-pluggable, devices can be unbound from the
driver via sysfs, so we should not be using __exit annotations on
remove() methods. The only exception is drivers registered with
platform_driver_probe() which specifically disables sysfs bind/unbind
attributes.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/faraday/ftmac100.c')
-rw-r--r-- | drivers/net/ethernet/faraday/ftmac100.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/faraday/ftmac100.c b/drivers/net/ethernet/faraday/ftmac100.c index c0ddbbe6c226..6ac336b546e6 100644 --- a/drivers/net/ethernet/faraday/ftmac100.c +++ b/drivers/net/ethernet/faraday/ftmac100.c @@ -1156,7 +1156,7 @@ err_alloc_etherdev: return err; } -static int __exit ftmac100_remove(struct platform_device *pdev) +static int ftmac100_remove(struct platform_device *pdev) { struct net_device *netdev; struct ftmac100 *priv; @@ -1176,7 +1176,7 @@ static int __exit ftmac100_remove(struct platform_device *pdev) static struct platform_driver ftmac100_driver = { .probe = ftmac100_probe, - .remove = __exit_p(ftmac100_remove), + .remove = ftmac100_remove, .driver = { .name = DRV_NAME, }, |