i2c: Make remove callback return void
[sfrench/cifs-2.6.git] / drivers / rtc / rtc-m41t80.c
index d868458cd40ed05c200cfe456267df385a5886a5..e0b4d3794320bf5b26113f2e2d02180d75843dd2 100644 (file)
@@ -989,7 +989,7 @@ static int m41t80_probe(struct i2c_client *client,
        return 0;
 }
 
-static int m41t80_remove(struct i2c_client *client)
+static void m41t80_remove(struct i2c_client *client)
 {
 #ifdef CONFIG_RTC_DRV_M41T80_WDT
        struct m41t80_data *clientdata = i2c_get_clientdata(client);
@@ -999,8 +999,6 @@ static int m41t80_remove(struct i2c_client *client)
                unregister_reboot_notifier(&wdt_notifier);
        }
 #endif
-
-       return 0;
 }
 
 static struct i2c_driver m41t80_driver = {