summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/atmel_mxt_ts.c
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@nvidia.com>2012-11-05 21:16:33 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:38:31 -0700
commite8c574fb181a86cb0d2521784d592c70d86da7d4 (patch)
tree3de513330d0f556aca25ca0daf398dff9dcc4643 /drivers/input/touchscreen/atmel_mxt_ts.c
parentd2d514d2d6de0d3ebd3e5abac681e2ae0914581e (diff)
Partial Revert "Input: convert I2C drivers to use module_i2c_driver()"
This reverts commit 1b92c1cf6b638e7cbe9fdaac3f6efb8874f5cc02. Rebase-Id: Re4f43a07bbab0a4e38a18a1388512defc07ad878
Diffstat (limited to 'drivers/input/touchscreen/atmel_mxt_ts.c')
-rw-r--r--drivers/input/touchscreen/atmel_mxt_ts.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
index 492b19e5ecee..ee5c44e4a14c 100644
--- a/drivers/input/touchscreen/atmel_mxt_ts.c
+++ b/drivers/input/touchscreen/atmel_mxt_ts.c
@@ -2467,7 +2467,18 @@ static struct i2c_driver mxt_driver = {
.id_table = mxt_id,
};
-module_i2c_driver(mxt_driver);
+static int __init mxt_init(void)
+{
+ return i2c_add_driver(&mxt_driver);
+}
+
+static void __exit mxt_exit(void)
+{
+ i2c_del_driver(&mxt_driver);
+}
+
+module_init(mxt_init);
+module_exit(mxt_exit);
/* Module information */
MODULE_AUTHOR("Joonyoung Shim <jy0922.shim@samsung.com>");