summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-06-20 14:18:34 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-20 14:18:34 +0200
commit0d71e86e4235ce3ffe135f5b5d39118c0f0597c5 (patch)
treec8dd4eb8bc418341a398a58490f9718a68db4e5f /linux/drivers/media/video
parentce2c39f9dbd553bbec3d1cc6aa926c4e95a2c844 (diff)
downloadmediapointer-dvb-s2-0d71e86e4235ce3ffe135f5b5d39118c0f0597c5.tar.gz
mediapointer-dvb-s2-0d71e86e4235ce3ffe135f5b5d39118c0f0597c5.tar.bz2
tcm825x: remove incorrect __exit_p wrapper
From: Hans Verkuil <hverkuil@xs4all.nl> tcm825x_remove is not necessarily called on module exit, it can also be called when the i2c_adapter is removed. While the i2c adapter might never be removed on an embedded system, in practice this sensor driver can also be used in e.g. a USB webcam where this is a perfectly acceptable thing to do. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/tcm825x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/tcm825x.c b/linux/drivers/media/video/tcm825x.c
index 559ade821..d778c41ef 100644
--- a/linux/drivers/media/video/tcm825x.c
+++ b/linux/drivers/media/video/tcm825x.c
@@ -882,7 +882,7 @@ static int tcm825x_probe(struct i2c_client *client,
return rval;
}
-static int __exit tcm825x_remove(struct i2c_client *client)
+static int tcm825x_remove(struct i2c_client *client)
{
struct tcm825x_sensor *sensor = i2c_get_clientdata(client);
@@ -908,7 +908,7 @@ static struct i2c_driver tcm825x_i2c_driver = {
.name = TCM825X_NAME,
},
.probe = tcm825x_probe,
- .remove = __exit_p(tcm825x_remove),
+ .remove = tcm825x_remove,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26)
.id_table = tcm825x_id,
#endif