Commit 02a890d6 authored by Sachin Kamat's avatar Sachin Kamat Committed by Mauro Carvalho Chehab

[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: default avatarSachin Kamat <sachin.kamat@linaro.org>
Acked-by: default avatarTomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 500c3201
......@@ -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);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment