提交 78cea55c 编写于 作者: D Dmitry Torokhov 提交者: Mauro Carvalho Chehab

[media] ad5820: 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>
Acked-by: NPavel Machek <pavel@ucw.cz>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 79e92dc0
...@@ -336,7 +336,7 @@ static int ad5820_probe(struct i2c_client *client, ...@@ -336,7 +336,7 @@ static int ad5820_probe(struct i2c_client *client,
return ret; return ret;
} }
static int __exit ad5820_remove(struct i2c_client *client) static int ad5820_remove(struct i2c_client *client)
{ {
struct v4l2_subdev *subdev = i2c_get_clientdata(client); struct v4l2_subdev *subdev = i2c_get_clientdata(client);
struct ad5820_device *coil = to_ad5820_device(subdev); struct ad5820_device *coil = to_ad5820_device(subdev);
...@@ -362,7 +362,7 @@ static struct i2c_driver ad5820_i2c_driver = { ...@@ -362,7 +362,7 @@ static struct i2c_driver ad5820_i2c_driver = {
.pm = &ad5820_pm, .pm = &ad5820_pm,
}, },
.probe = ad5820_probe, .probe = ad5820_probe,
.remove = __exit_p(ad5820_remove), .remove = ad5820_remove,
.id_table = ad5820_id_table, .id_table = ad5820_id_table,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册