diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-03-19 20:02:01 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-03-19 20:02:01 -0400 |
commit | 10ce3cc919f50c2043b41ca968b43c26a3672600 (patch) | |
tree | ea409366a5208aced495bc0516a08b81fd43222e /drivers/input/misc/adxl34x-i2c.c | |
parent | 24e3e5ae1e4c2a3a32f5b1f96b4e3fd721806acd (diff) | |
parent | 5c6a7a62c130afef3d61c1dee153012231ff5cd9 (diff) |
Merge branch 'next' into for-linus
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"); |