aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/bmp085.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-01-22 02:36:45 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-24 19:31:49 -0500
commita64fe2ed76614d37abb6966a67f4f39d10efba3c (patch)
tree553806918a13fb98fde71ce8e696d4174e7a103e /drivers/misc/bmp085.c
parentb00e126ffea89b687a83093546058b07aa054b4c (diff)
MISC: convert drivers/misc/* to use module_i2c_driver()
This patch converts the drivers in drivers/misc/* to use the module_i2c_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Michael Hennerich <hennerich@blackfin.uclinux.org> Cc: Anantha Narayanan <Anantha.Narayanan@intel.com> Cc: Hemanth V <hemanthv@ti.com> Cc: Christoph Mair <christoph.mair@gmail.com> Cc: Grant Likely <grant.likely@secretlab.ca> Cc: Ben Gardner <bgardner@wabtec.com> Cc: Minkyu Kang <mk7.kang@samsung.com> Cc: Kalhan Trisal <kalhan.trisal@intel.com> Cc: Darrick J. Wong <djwong@us.ibm.com> Cc: Daniel Mack <zonque@gmail.com> Cc: Rodolfo Giometti <giometti@linux.it> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/misc/bmp085.c')
-rw-r--r--drivers/misc/bmp085.c14
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 = {
464 .address_list = normal_i2c 464 .address_list = normal_i2c
465}; 465};
466 466
467static int __init bmp085_init(void) 467module_i2c_driver(bmp085_driver);
468{
469 return i2c_add_driver(&bmp085_driver);
470}
471
472static void __exit bmp085_exit(void)
473{
474 i2c_del_driver(&bmp085_driver);
475}
476
477 468
478MODULE_AUTHOR("Christoph Mair <christoph.mair@gmail.com"); 469MODULE_AUTHOR("Christoph Mair <christoph.mair@gmail.com");
479MODULE_DESCRIPTION("BMP085 driver"); 470MODULE_DESCRIPTION("BMP085 driver");
480MODULE_LICENSE("GPL"); 471MODULE_LICENSE("GPL");
481
482module_init(bmp085_init);
483module_exit(bmp085_exit);