diff options
Diffstat (limited to 'drivers/input/misc/ad714x-i2c.c')
-rw-r--r-- | drivers/input/misc/ad714x-i2c.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/input/misc/ad714x-i2c.c b/drivers/input/misc/ad714x-i2c.c index 56810fb4eadd..c8a79015472a 100644 --- a/drivers/input/misc/ad714x-i2c.c +++ b/drivers/input/misc/ad714x-i2c.c | |||
@@ -116,17 +116,7 @@ static struct i2c_driver ad714x_i2c_driver = { | |||
116 | .id_table = ad714x_id, | 116 | .id_table = ad714x_id, |
117 | }; | 117 | }; |
118 | 118 | ||
119 | static int __init ad714x_i2c_init(void) | 119 | module_i2c_driver(ad714x_i2c_driver); |
120 | { | ||
121 | return i2c_add_driver(&ad714x_i2c_driver); | ||
122 | } | ||
123 | module_init(ad714x_i2c_init); | ||
124 | |||
125 | static void __exit ad714x_i2c_exit(void) | ||
126 | { | ||
127 | i2c_del_driver(&ad714x_i2c_driver); | ||
128 | } | ||
129 | module_exit(ad714x_i2c_exit); | ||
130 | 120 | ||
131 | MODULE_DESCRIPTION("Analog Devices AD714X Capacitance Touch Sensor I2C Bus Driver"); | 121 | MODULE_DESCRIPTION("Analog Devices AD714X Capacitance Touch Sensor I2C Bus Driver"); |
132 | MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>"); | 122 | MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>"); |