Skip to content

Commit

Permalink
V4L/DVB (12111): tcm825x: remove incorrect __exit_p wrapper
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jun 23, 2009
1 parent 5543e2b commit 54bb501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/video/tcm825x.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,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);

Expand All @@ -902,7 +902,7 @@ static struct i2c_driver tcm825x_i2c_driver = {
.name = TCM825X_NAME,
},
.probe = tcm825x_probe,
.remove = __exit_p(tcm825x_remove),
.remove = tcm825x_remove,
.id_table = tcm825x_id,
};

Expand Down

0 comments on commit 54bb501

Please sign in to comment.