i2c: Make remove callback return void
[linux-2.6-microblaze.git] / drivers / i2c / i2c-slave-eeprom.c
index 5c7ae42..4abc2d9 100644 (file)
@@ -181,14 +181,12 @@ static int i2c_slave_eeprom_probe(struct i2c_client *client, const struct i2c_de
        return 0;
 };
 
-static int i2c_slave_eeprom_remove(struct i2c_client *client)
+static void i2c_slave_eeprom_remove(struct i2c_client *client)
 {
        struct eeprom_data *eeprom = i2c_get_clientdata(client);
 
        i2c_slave_unregister(client);
        sysfs_remove_bin_file(&client->dev.kobj, &eeprom->bin);
-
-       return 0;
 }
 
 static const struct i2c_device_id i2c_slave_eeprom_id[] = {