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 / dsa / lan9303_i2c.c
index 79be5fc..7d746cd 100644 (file)
@@ -65,16 +65,14 @@ static int lan9303_i2c_probe(struct i2c_client *client,
        return 0;
 }
 
-static int lan9303_i2c_remove(struct i2c_client *client)
+static void lan9303_i2c_remove(struct i2c_client *client)
 {
        struct lan9303_i2c *sw_dev = i2c_get_clientdata(client);
 
        if (!sw_dev)
-               return 0;
+               return;
 
        lan9303_remove(&sw_dev->chip);
-
-       return 0;
 }
 
 static void lan9303_i2c_shutdown(struct i2c_client *client)