From: Uwe Kleine-König Date: Fri, 16 Sep 2022 09:08:02 +0000 (+0200) Subject: macintosh/ams: Adapt declaration of ams_i2c_remove() to earlier change X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2dec3a7a7beb23ec11b23986e0e331913d621ff1;p=linux.git macintosh/ams: Adapt declaration of ams_i2c_remove() to earlier change 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 Signed-off-by: Uwe Kleine-König Acked-by: Michael Ellerman (powerpc) Signed-off-by: Wolfram Sang --- diff --git a/drivers/macintosh/ams/ams-i2c.c b/drivers/macintosh/ams/ams-i2c.c index 362fc56b69dce..3ded340699fb5 100644 --- a/drivers/macintosh/ams/ams-i2c.c +++ b/drivers/macintosh/ams/ams-i2c.c @@ -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 },