Skip to content

Commit

Permalink
[media] s5p-tv: Use module_i2c_driver in sii9234_drv.c file
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Mauro Carvalho Chehab committed Jul 6, 2012
1 parent 500c320 commit 02a890d
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions drivers/media/video/s5p-tv/sii9234_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 02a890d

Please sign in to comment.