Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: tps65010: Remove incorrect __exit markups

Even if bus is not hot-pluggable, the 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: Lee Jones <lee.jones@linaro.org>

authored by

Dmitry Torokhov and committed by
Lee Jones
bb733707 8d2f1a9d

+2 -2
+2 -2
drivers/mfd/tps65010.c
··· 515 515 516 516 static struct tps65010 *the_tps; 517 517 518 - static int __exit tps65010_remove(struct i2c_client *client) 518 + static int tps65010_remove(struct i2c_client *client) 519 519 { 520 520 struct tps65010 *tps = i2c_get_clientdata(client); 521 521 struct tps65010_board *board = dev_get_platdata(&client->dev); ··· 684 684 .name = "tps65010", 685 685 }, 686 686 .probe = tps65010_probe, 687 - .remove = __exit_p(tps65010_remove), 687 + .remove = tps65010_remove, 688 688 .id_table = tps65010_id, 689 689 }; 690 690