[media] s5p-tv: Use module_i2c_driver in sii9234_drv.c file
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 4 Jul 2012 05:33:15 +0000 (02:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jul 2012 21:28:52 +0000 (18:28 -0300)
module_i2c_driver makes the code simpler by eliminating module_init
and module_exit calls.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-tv/sii9234_drv.c

index 0f31eccd7b80e462c678368047294f8c8027f24a..6d348f90237af244c6d4436d7f094ba2d973dab3 100644 (file)
@@ -419,14 +419,4 @@ static struct i2c_driver sii9234_driver = {
        .id_table = sii9234_id,
 };
 
-static int __init sii9234_init(void)
-{
-       return i2c_add_driver(&sii9234_driver);
-}
-module_init(sii9234_init);
-
-static void __exit sii9234_exit(void)
-{
-       i2c_del_driver(&sii9234_driver);
-}
-module_exit(sii9234_exit);
+module_i2c_driver(sii9234_driver);