Merge tag 'char-misc-3.3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh...
[firefly-linux-kernel-4.4.55.git] / drivers / misc / eeprom / max6875.c
index 5653a3ce0517275df1e1f72f351164145af45ff1..e36157d5d3abf0c9d8ed388cad08a2dcbf6e74d8 100644 (file)
@@ -208,20 +208,8 @@ static struct i2c_driver max6875_driver = {
        .id_table       = max6875_id,
 };
 
-static int __init max6875_init(void)
-{
-       return i2c_add_driver(&max6875_driver);
-}
-
-static void __exit max6875_exit(void)
-{
-       i2c_del_driver(&max6875_driver);
-}
-
+module_i2c_driver(max6875_driver);
 
 MODULE_AUTHOR("Ben Gardner <bgardner@wabtec.com>");
 MODULE_DESCRIPTION("MAX6875 driver");
 MODULE_LICENSE("GPL");
-
-module_init(max6875_init);
-module_exit(max6875_exit);