summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/cyttsp_i2c.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2012-03-17 07:05:44 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-03-17 07:06:34 +0100
commit4a53383565e340254479ce4d47bc181884ddf6c3 (patch)
tree6678fa987358a5613905ba321652edc793323590 /drivers/input/touchscreen/cyttsp_i2c.c
parentInput: convert I2C drivers to use module_i2c_driver() (diff)
downloadlinux-4a53383565e340254479ce4d47bc181884ddf6c3.tar.xz
linux-4a53383565e340254479ce4d47bc181884ddf6c3.zip
Input: synaptics_usb - switch to module_usb_driver()
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/touchscreen/cyttsp_i2c.c')
-rw-r--r--drivers/input/touchscreen/cyttsp_i2c.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/input/touchscreen/cyttsp_i2c.c b/drivers/input/touchscreen/cyttsp_i2c.c
index c7110cc06b9d..2af1d0c52bcd 100644
--- a/drivers/input/touchscreen/cyttsp_i2c.c
+++ b/drivers/input/touchscreen/cyttsp_i2c.c
@@ -128,17 +128,7 @@ static struct i2c_driver cyttsp_i2c_driver = {
.id_table = cyttsp_i2c_id,
};
-static int __init cyttsp_i2c_init(void)
-{
- return i2c_add_driver(&cyttsp_i2c_driver);
-}
-module_init(cyttsp_i2c_init);
-
-static void __exit cyttsp_i2c_exit(void)
-{
- return i2c_del_driver(&cyttsp_i2c_driver);
-}
-module_exit(cyttsp_i2c_exit);
+module_i2c_driver(cyttsp_i2c_driver);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Cypress TrueTouch(R) Standard Product (TTSP) I2C driver");