macintosh/ams: Adapt declaration of ams_i2c_remove() to earlier change
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 16 Sep 2022 09:08:02 +0000 (11:08 +0200)
committerWolfram Sang <wsa@kernel.org>
Sat, 17 Sep 2022 18:37:23 +0000 (20:37 +0200)
Commit ed5c2f5fd10d ("i2c: Make remove callback return void") changed
the prototype of ams_i2c_remove() but failed to adapt the declaration.
Catch up and fix the declaration accordingly.

Fixes: ed5c2f5fd10d ("i2c: Make remove callback return void")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/macintosh/ams/ams-i2c.c

index 362fc56..3ded340 100644 (file)
@@ -58,7 +58,7 @@ enum ams_i2c_cmd {
 
 static int ams_i2c_probe(struct i2c_client *client,
                         const struct i2c_device_id *id);
-static int ams_i2c_remove(struct i2c_client *client);
+static void ams_i2c_remove(struct i2c_client *client);
 
 static const struct i2c_device_id ams_id[] = {
        { "MAC,accelerometer_1", 0 },