aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/adp1653.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/adp1653.c')
-rw-r--r--drivers/media/video/adp1653.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/media/video/adp1653.c b/drivers/media/video/adp1653.c
index 12eedf4d515a..5b045b4a66fe 100644
--- a/drivers/media/video/adp1653.c
+++ b/drivers/media/video/adp1653.c
@@ -33,7 +33,6 @@
33#include <linux/delay.h> 33#include <linux/delay.h>
34#include <linux/module.h> 34#include <linux/module.h>
35#include <linux/i2c.h> 35#include <linux/i2c.h>
36#include <linux/module.h>
37#include <linux/slab.h> 36#include <linux/slab.h>
38#include <linux/version.h> 37#include <linux/version.h>
39#include <media/adp1653.h> 38#include <media/adp1653.h>
@@ -482,24 +481,7 @@ static struct i2c_driver adp1653_i2c_driver = {
482 .id_table = adp1653_id_table, 481 .id_table = adp1653_id_table,
483}; 482};
484 483
485static int __init adp1653_init(void) 484module_i2c_driver(adp1653_i2c_driver);
486{
487 int rval;
488
489 rval = i2c_add_driver(&adp1653_i2c_driver);
490 if (rval)
491 printk(KERN_ALERT "%s: failed at i2c_add_driver\n", __func__);
492
493 return rval;
494}
495
496static void __exit adp1653_exit(void)
497{
498 i2c_del_driver(&adp1653_i2c_driver);
499}
500
501module_init(adp1653_init);
502module_exit(adp1653_exit);
503 485
504MODULE_AUTHOR("Sakari Ailus <sakari.ailus@nokia.com>"); 486MODULE_AUTHOR("Sakari Ailus <sakari.ailus@nokia.com>");
505MODULE_DESCRIPTION("Analog Devices ADP1653 LED flash driver"); 487MODULE_DESCRIPTION("Analog Devices ADP1653 LED flash driver");