diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-09-16 11:08:02 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2022-09-17 20:37:23 +0200 |
commit | 2dec3a7a7beb23ec11b23986e0e331913d621ff1 (patch) | |
tree | 192cb8b80e113e8afd9b4121819dbaebea15d4ee /drivers/macintosh | |
parent | e05e47088ef12ce69b5c40605e95d01c11807a22 (diff) | |
download | linux-stable-2dec3a7a7beb23ec11b23986e0e331913d621ff1.tar.gz linux-stable-2dec3a7a7beb23ec11b23986e0e331913d621ff1.tar.bz2 linux-stable-2dec3a7a7beb23ec11b23986e0e331913d621ff1.zip |
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 <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>
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/ams/ams-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/ams/ams-i2c.c b/drivers/macintosh/ams/ams-i2c.c index 362fc56b69dc..3ded340699fb 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 }, |