Skip to content

Commit

Permalink
mfd: adp5520: Use module_i2c_driver()
Browse files Browse the repository at this point in the history
module_i2c_driver() removes some boilerplate and makes the code
simple.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Sachin Kamat authored and Samuel Ortiz committed Apr 8, 2013
1 parent 8b5fd85 commit 099bb95
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions drivers/mfd/adp5520.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,17 +360,7 @@ static struct i2c_driver adp5520_driver = {
.id_table = adp5520_id,
};

static int __init adp5520_init(void)
{
return i2c_add_driver(&adp5520_driver);
}
module_init(adp5520_init);

static void __exit adp5520_exit(void)
{
i2c_del_driver(&adp5520_driver);
}
module_exit(adp5520_exit);
module_i2c_driver(adp5520_driver);

MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("ADP5520(01) PMIC-MFD Driver");
Expand Down

0 comments on commit 099bb95

Please sign in to comment.