aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/media/go7007/s2250-board.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-10-08 08:56:11 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-25 17:07:25 -0200
commit74ffbf86db2b561f6a035ee63110ae3721e7a36a (patch)
treec485a96c81e0dfa550bee9b8155dff348dd5fbc2 /drivers/staging/media/go7007/s2250-board.c
parent275ffde4620334d592871bae4478f58de8a6fc2a (diff)
[media] staging :go700: use module_i2c_driver to simplify the code
Use the module_i2c_driver() macro to make the code smaller and a bit simpler. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/media/go7007/s2250-board.c')
-rw-r--r--drivers/staging/media/go7007/s2250-board.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/staging/media/go7007/s2250-board.c b/drivers/staging/media/go7007/s2250-board.c
index 014d38410c9..b3974100c6c 100644
--- a/drivers/staging/media/go7007/s2250-board.c
+++ b/drivers/staging/media/go7007/s2250-board.c
@@ -688,15 +688,4 @@ static struct i2c_driver s2250_driver = {
.id_table = s2250_id,
};
-static __init int init_s2250(void)
-{
- return i2c_add_driver(&s2250_driver);
-}
-
-static __exit void exit_s2250(void)
-{
- i2c_del_driver(&s2250_driver);
-}
-
-module_init(init_s2250);
-module_exit(exit_s2250);
+module_i2c_driver(s2250_driver);