diff options
Diffstat (limited to 'drivers/media/video/ir-kbd-i2c.c')
-rw-r--r-- | drivers/media/video/ir-kbd-i2c.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c index a7c41d32f414..04f192a0398a 100644 --- a/drivers/media/video/ir-kbd-i2c.c +++ b/drivers/media/video/ir-kbd-i2c.c | |||
@@ -471,7 +471,7 @@ static const struct i2c_device_id ir_kbd_id[] = { | |||
471 | { } | 471 | { } |
472 | }; | 472 | }; |
473 | 473 | ||
474 | static struct i2c_driver driver = { | 474 | static struct i2c_driver ir_kbd_driver = { |
475 | .driver = { | 475 | .driver = { |
476 | .name = "ir-kbd-i2c", | 476 | .name = "ir-kbd-i2c", |
477 | }, | 477 | }, |
@@ -480,21 +480,10 @@ static struct i2c_driver driver = { | |||
480 | .id_table = ir_kbd_id, | 480 | .id_table = ir_kbd_id, |
481 | }; | 481 | }; |
482 | 482 | ||
483 | module_i2c_driver(ir_kbd_driver); | ||
484 | |||
483 | /* ----------------------------------------------------------------------- */ | 485 | /* ----------------------------------------------------------------------- */ |
484 | 486 | ||
485 | MODULE_AUTHOR("Gerd Knorr, Michal Kochanowicz, Christoph Bartelmus, Ulrich Mueller"); | 487 | MODULE_AUTHOR("Gerd Knorr, Michal Kochanowicz, Christoph Bartelmus, Ulrich Mueller"); |
486 | MODULE_DESCRIPTION("input driver for i2c IR remote controls"); | 488 | MODULE_DESCRIPTION("input driver for i2c IR remote controls"); |
487 | MODULE_LICENSE("GPL"); | 489 | MODULE_LICENSE("GPL"); |
488 | |||
489 | static int __init ir_init(void) | ||
490 | { | ||
491 | return i2c_add_driver(&driver); | ||
492 | } | ||
493 | |||
494 | static void __exit ir_fini(void) | ||
495 | { | ||
496 | i2c_del_driver(&driver); | ||
497 | } | ||
498 | |||
499 | module_init(ir_init); | ||
500 | module_exit(ir_fini); | ||