diff options
Diffstat (limited to 'drivers/input/misc/adxl34x-i2c.c')
-rw-r--r-- | drivers/input/misc/adxl34x-i2c.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/input/misc/adxl34x-i2c.c b/drivers/input/misc/adxl34x-i2c.c index ccacf2bb06a4..dd1d1c145a7f 100644 --- a/drivers/input/misc/adxl34x-i2c.c +++ b/drivers/input/misc/adxl34x-i2c.c | |||
@@ -148,17 +148,7 @@ static struct i2c_driver adxl34x_driver = { | |||
148 | .id_table = adxl34x_id, | 148 | .id_table = adxl34x_id, |
149 | }; | 149 | }; |
150 | 150 | ||
151 | static int __init adxl34x_i2c_init(void) | 151 | module_i2c_driver(adxl34x_driver); |
152 | { | ||
153 | return i2c_add_driver(&adxl34x_driver); | ||
154 | } | ||
155 | module_init(adxl34x_i2c_init); | ||
156 | |||
157 | static void __exit adxl34x_i2c_exit(void) | ||
158 | { | ||
159 | i2c_del_driver(&adxl34x_driver); | ||
160 | } | ||
161 | module_exit(adxl34x_i2c_exit); | ||
162 | 152 | ||
163 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); | 153 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); |
164 | MODULE_DESCRIPTION("ADXL345/346 Three-Axis Digital Accelerometer I2C Bus Driver"); | 154 | MODULE_DESCRIPTION("ADXL345/346 Three-Axis Digital Accelerometer I2C Bus Driver"); |