summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/bu21013_ts.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-03-16 23:05:41 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-03-16 23:06:19 -0700
commit1b92c1cf6b638e7cbe9fdaac3f6efb8874f5cc02 (patch)
tree88e7cfcd088df7eba9b705285c8e0d8ba7bbd632 /drivers/input/touchscreen/bu21013_ts.c
parentca83922e1c51c090e62bd42f3c12c84f49374a9e (diff)
Input: convert I2C drivers to use module_i2c_driver()
This patch converts the drivers in drivers/input/* to use the module_i2c_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/touchscreen/bu21013_ts.c')
-rw-r--r--drivers/input/touchscreen/bu21013_ts.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/drivers/input/touchscreen/bu21013_ts.c b/drivers/input/touchscreen/bu21013_ts.c
index 902c7214e887..f2d03c06c2da 100644
--- a/drivers/input/touchscreen/bu21013_ts.c
+++ b/drivers/input/touchscreen/bu21013_ts.c
@@ -652,30 +652,7 @@ static struct i2c_driver bu21013_driver = {
.id_table = bu21013_id,
};
-/**
- * bu21013_init() - initializes the bu21013 touchscreen driver
- *
- * This function used to initializes the bu21013
- * touchscreen driver and returns integer.
- */
-static int __init bu21013_init(void)
-{
- return i2c_add_driver(&bu21013_driver);
-}
-
-/**
- * bu21013_exit() - de-initializes the bu21013 touchscreen driver
- *
- * This function uses to de-initializes the bu21013
- * touchscreen driver and returns none.
- */
-static void __exit bu21013_exit(void)
-{
- i2c_del_driver(&bu21013_driver);
-}
-
-module_init(bu21013_init);
-module_exit(bu21013_exit);
+module_i2c_driver(bu21013_driver);
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Naveen Kumar G <naveen.gaddipati@stericsson.com>");