diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-03-02 00:37:57 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-03-05 14:52:01 +0100 |
commit | 3ff861f59f6c1f5bf2bc03d2cd36ac3f992cbc06 (patch) | |
tree | 0cdebe545c4707a47451c727c06a895fb2661a0c /drivers/iio/magnetometer | |
parent | iio: hid-sensor-trigger: Change get poll value function order to avoid sensor... (diff) | |
download | linux-3ff861f59f6c1f5bf2bc03d2cd36ac3f992cbc06.tar.xz linux-3ff861f59f6c1f5bf2bc03d2cd36ac3f992cbc06.zip |
iio: magnetometer: ak8974: 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>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/magnetometer')
-rw-r--r-- | drivers/iio/magnetometer/ak8974.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/magnetometer/ak8974.c b/drivers/iio/magnetometer/ak8974.c index 6dd8cbd7ce95..e13370dc9b1c 100644 --- a/drivers/iio/magnetometer/ak8974.c +++ b/drivers/iio/magnetometer/ak8974.c @@ -763,7 +763,7 @@ power_off: return ret; } -static int __exit ak8974_remove(struct i2c_client *i2c) +static int ak8974_remove(struct i2c_client *i2c) { struct iio_dev *indio_dev = i2c_get_clientdata(i2c); struct ak8974 *ak8974 = iio_priv(indio_dev); @@ -845,7 +845,7 @@ static struct i2c_driver ak8974_driver = { .of_match_table = of_match_ptr(ak8974_of_match), }, .probe = ak8974_probe, - .remove = __exit_p(ak8974_remove), + .remove = ak8974_remove, .id_table = ak8974_id, }; module_i2c_driver(ak8974_driver); |