Date:2012-09-20 06:18:47 (7 years 2 months ago)
Author:Marcos Paulo de Souza
Commit:a96c5846ed54c906a46fcd6899cf19b18d8968b0
Message:media/radio/radio-rda5807: Use module_i2c_driver instead of module_{init|exit}

With this change, we can remove some lines without any functional change.
This makes the code of the driver more simple.

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Files: drivers/media/radio/radio-rda5807.c (1 diff)

Change Details

drivers/media/radio/radio-rda5807.c
639639    },
640640};
641641
642static int __init rda5807_init(void)
643{
644    return i2c_add_driver(&rda5807_i2c_driver);
645}
646
647static void __exit rda5807_exit(void)
648{
649    i2c_del_driver(&rda5807_i2c_driver);
650}
651
652module_init(rda5807_init);
653module_exit(rda5807_exit);
642module_i2c_driver(rda5807_i2c_driver);
654643
655644MODULE_AUTHOR("Maarten ter Huurne <maarten@treewalker.org>");
656645MODULE_DESCRIPTION("RDA5807 FM tuner driver");

Archive Download the corresponding diff file



interactive