From: Sachin Kamat Date: Wed, 4 Jul 2012 05:33:15 +0000 (-0300) Subject: [media] s5p-tv: Use module_i2c_driver in sii9234_drv.c file X-Git-Tag: upstream/snapshot3+hdmi~4891^2~1895 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02a890d6262df653e5efdf47658f2330a6407f3e;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [media] s5p-tv: Use module_i2c_driver in sii9234_drv.c file module_i2c_driver makes the code simpler by eliminating module_init and module_exit calls. Signed-off-by: Sachin Kamat Acked-by: Tomasz Stanislawski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/s5p-tv/sii9234_drv.c b/drivers/media/video/s5p-tv/sii9234_drv.c index 0f31ecc..6d348f9 100644 --- a/drivers/media/video/s5p-tv/sii9234_drv.c +++ b/drivers/media/video/s5p-tv/sii9234_drv.c @@ -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);