diff options
Diffstat (limited to 'drivers/media/video/adp1653.c')
-rw-r--r-- | drivers/media/video/adp1653.c | 20 |
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 | ||
485 | static int __init adp1653_init(void) | 484 | module_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 | |||
496 | static void __exit adp1653_exit(void) | ||
497 | { | ||
498 | i2c_del_driver(&adp1653_i2c_driver); | ||
499 | } | ||
500 | |||
501 | module_init(adp1653_init); | ||
502 | module_exit(adp1653_exit); | ||
503 | 485 | ||
504 | MODULE_AUTHOR("Sakari Ailus <sakari.ailus@nokia.com>"); | 486 | MODULE_AUTHOR("Sakari Ailus <sakari.ailus@nokia.com>"); |
505 | MODULE_DESCRIPTION("Analog Devices ADP1653 LED flash driver"); | 487 | MODULE_DESCRIPTION("Analog Devices ADP1653 LED flash driver"); |