提交 733e009c 编写于 作者: D Dmitry Torokhov 提交者: Mauro Carvalho Chehab

[media] Staging: media: radio-bcm2048: 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: NDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 78cea55c
......@@ -2642,7 +2642,7 @@ static int bcm2048_i2c_driver_probe(struct i2c_client *client,
return err;
}
static int __exit bcm2048_i2c_driver_remove(struct i2c_client *client)
static int bcm2048_i2c_driver_remove(struct i2c_client *client)
{
struct bcm2048_device *bdev = i2c_get_clientdata(client);
......@@ -2681,7 +2681,7 @@ static struct i2c_driver bcm2048_i2c_driver = {
.name = BCM2048_DRIVER_NAME,
},
.probe = bcm2048_i2c_driver_probe,
.remove = __exit_p(bcm2048_i2c_driver_remove),
.remove = bcm2048_i2c_driver_remove,
.id_table = bcm2048_id,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册