diff options
Diffstat (limited to 'drivers/misc/bmp085.c')
-rw-r--r-- | drivers/misc/bmp085.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/misc/bmp085.c b/drivers/misc/bmp085.c index b29a2be24591..3c534aba6272 100644 --- a/drivers/misc/bmp085.c +++ b/drivers/misc/bmp085.c @@ -464,20 +464,8 @@ static struct i2c_driver bmp085_driver = { .address_list = normal_i2c }; -static int __init bmp085_init(void) -{ - return i2c_add_driver(&bmp085_driver); -} - -static void __exit bmp085_exit(void) -{ - i2c_del_driver(&bmp085_driver); -} - +module_i2c_driver(bmp085_driver); MODULE_AUTHOR("Christoph Mair <christoph.mair@gmail.com"); MODULE_DESCRIPTION("BMP085 driver"); MODULE_LICENSE("GPL"); - -module_init(bmp085_init); -module_exit(bmp085_exit); |