diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-22 02:36:45 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-24 19:31:49 -0500 |
commit | a64fe2ed76614d37abb6966a67f4f39d10efba3c (patch) | |
tree | 553806918a13fb98fde71ce8e696d4174e7a103e /drivers/misc/isl29003.c | |
parent | b00e126ffea89b687a83093546058b07aa054b4c (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/isl29003.c')
-rw-r--r-- | drivers/misc/isl29003.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/misc/isl29003.c b/drivers/misc/isl29003.c index a71e245801ee..eb5de2e210d7 100644 --- a/drivers/misc/isl29003.c +++ b/drivers/misc/isl29003.c | |||
@@ -455,21 +455,9 @@ static struct i2c_driver isl29003_driver = { | |||
455 | .id_table = isl29003_id, | 455 | .id_table = isl29003_id, |
456 | }; | 456 | }; |
457 | 457 | ||
458 | static int __init isl29003_init(void) | 458 | module_i2c_driver(isl29003_driver); |
459 | { | ||
460 | return i2c_add_driver(&isl29003_driver); | ||
461 | } | ||
462 | |||
463 | static void __exit isl29003_exit(void) | ||
464 | { | ||
465 | i2c_del_driver(&isl29003_driver); | ||
466 | } | ||
467 | 459 | ||
468 | MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>"); | 460 | MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>"); |
469 | MODULE_DESCRIPTION("ISL29003 ambient light sensor driver"); | 461 | MODULE_DESCRIPTION("ISL29003 ambient light sensor driver"); |
470 | MODULE_LICENSE("GPL v2"); | 462 | MODULE_LICENSE("GPL v2"); |
471 | MODULE_VERSION(DRIVER_VERSION); | 463 | MODULE_VERSION(DRIVER_VERSION); |
472 | |||
473 | module_init(isl29003_init); | ||
474 | module_exit(isl29003_exit); | ||
475 | |||