Merge tag 'i2c-for-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa...
[platform/kernel/linux-starfive.git] / drivers / net / ethernet / mellanox / mlxsw / i2c.c
index 716c73e..f5f5f8d 100644 (file)
@@ -740,15 +740,13 @@ errout:
        return err;
 }
 
-static int mlxsw_i2c_remove(struct i2c_client *client)
+static void mlxsw_i2c_remove(struct i2c_client *client)
 {
        struct mlxsw_i2c *mlxsw_i2c = i2c_get_clientdata(client);
 
        mlxsw_core_bus_device_unregister(mlxsw_i2c->core, false);
        mlxsw_i2c_irq_fini(mlxsw_i2c);
        mutex_destroy(&mlxsw_i2c->cmd.lock);
-
-       return 0;
 }
 
 int mlxsw_i2c_driver_register(struct i2c_driver *i2c_driver)