summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/auo-pixcir-ts.c
diff options
context:
space:
mode:
authorDmitry Torokhov2012-03-17 07:05:44 +0100
committerDmitry Torokhov2012-03-17 07:06:34 +0100
commit4a53383565e340254479ce4d47bc181884ddf6c3 (patch)
tree6678fa987358a5613905ba321652edc793323590 /drivers/input/touchscreen/auo-pixcir-ts.c
parentInput: convert I2C drivers to use module_i2c_driver() (diff)
downloadkernel-qcow2-linux-4a53383565e340254479ce4d47bc181884ddf6c3.tar.gz
kernel-qcow2-linux-4a53383565e340254479ce4d47bc181884ddf6c3.tar.xz
kernel-qcow2-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/auo-pixcir-ts.c')
-rw-r--r--drivers/input/touchscreen/auo-pixcir-ts.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/input/touchscreen/auo-pixcir-ts.c b/drivers/input/touchscreen/auo-pixcir-ts.c
index 94fb9fbb08a9..c7047b6bb020 100644
--- a/drivers/input/touchscreen/auo-pixcir-ts.c
+++ b/drivers/input/touchscreen/auo-pixcir-ts.c
@@ -635,17 +635,7 @@ static struct i2c_driver auo_pixcir_driver = {
.id_table = auo_pixcir_idtable,
};
-static int __init auo_pixcir_init(void)
-{
- return i2c_add_driver(&auo_pixcir_driver);
-}
-module_init(auo_pixcir_init);
-
-static void __exit auo_pixcir_exit(void)
-{
- i2c_del_driver(&auo_pixcir_driver);
-}
-module_exit(auo_pixcir_exit);
+module_i2c_driver(auo_pixcir_driver);
MODULE_DESCRIPTION("AUO-PIXCIR touchscreen driver");
MODULE_LICENSE("GPL v2");