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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b00e126ffe
commit
a64fe2ed76
@@ -250,19 +250,8 @@ static struct i2c_driver ds1682_driver = {
|
||||
.id_table = ds1682_id,
|
||||
};
|
||||
|
||||
static int __init ds1682_init(void)
|
||||
{
|
||||
return i2c_add_driver(&ds1682_driver);
|
||||
}
|
||||
|
||||
static void __exit ds1682_exit(void)
|
||||
{
|
||||
i2c_del_driver(&ds1682_driver);
|
||||
}
|
||||
module_i2c_driver(ds1682_driver);
|
||||
|
||||
MODULE_AUTHOR("Grant Likely <grant.likely@secretlab.ca>");
|
||||
MODULE_DESCRIPTION("DS1682 Elapsed Time Indicator driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
module_init(ds1682_init);
|
||||
module_exit(ds1682_exit);
|
||||
|
Reference in New Issue
Block a user