rtc: convert rtc i2c drivers to module_i2c_driver
[deliverable/linux.git] / drivers / rtc / rtc-max6900.c
index 486142c2637a05da66da8e1542c9545cb50c4d41..a00e33204b910224e9e1badccbae3eb3da9e7bbd 100644 (file)
@@ -261,20 +261,9 @@ static struct i2c_driver max6900_driver = {
        .id_table = max6900_id,
 };
 
-static int __init max6900_init(void)
-{
-       return i2c_add_driver(&max6900_driver);
-}
-
-static void __exit max6900_exit(void)
-{
-       i2c_del_driver(&max6900_driver);
-}
+module_i2c_driver(max6900_driver);
 
 MODULE_DESCRIPTION("Maxim MAX6900 RTC driver");
 MODULE_AUTHOR("Dale Farnsworth <dale@farnsworth.org>");
 MODULE_LICENSE("GPL");
 MODULE_VERSION(DRV_VERSION);
-
-module_init(max6900_init);
-module_exit(max6900_exit);
This page took 0.040178 seconds and 5 git commands to generate.