The patch number 12111 was added via Mauro Carvalho Chehab <mche...@redhat.com>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <linux-me...@vger.kernel.org>

------

From: Hans Verkuil  <hverk...@xs4all.nl>
tcm825x: remove incorrect __exit_p wrapper


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 <hverk...@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mche...@redhat.com>


---

 linux/drivers/media/video/tcm825x.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -r af0b36c207ff -r d6f9186e9c54 linux/drivers/media/video/tcm825x.c
--- a/linux/drivers/media/video/tcm825x.c       Sat Jun 20 10:54:10 2009 +0200
+++ b/linux/drivers/media/video/tcm825x.c       Sat Jun 20 14:18:34 2009 +0200
@@ -882,7 +882,7 @@ static int tcm825x_probe(struct i2c_clie
        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_dri
                .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


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/d6f9186e9c54e9193927ef2b7a631bf9d47658a1

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to