mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
[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 <sachin.kamat@linaro.org> Acked-by: Tomasz Stanislawski <t.stanislaws@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
500c3201e2
commit
02a890d626
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user