]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: magnetometer: ak8974: remove incorrect __exit markups
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 1 Mar 2017 23:37:57 +0000 (15:37 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2017 07:44:06 +0000 (09:44 +0200)
commitbf1aedff42b22df092f97a43a8f6b74fd75799ce
treee4daf609e0fc79cd1582b48cd9a95f74b3cfff6e
parent6c2aab07d12436af1cd8d9ac1d117a442cc91eec
iio: magnetometer: ak8974: remove incorrect __exit markups

commit 3ff861f59f6c1f5bf2bc03d2cd36ac3f992cbc06 upstream.

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>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/magnetometer/ak8974.c