Skip to content

Commit 2dec3a7

Browse files
Uwe Kleine-Königwsakernel
authored andcommitted
macintosh/ams: Adapt declaration of ams_i2c_remove() to earlier change
Commit ed5c2f5 ("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: ed5c2f5 ("i2c: Make remove callback return void") Reported-by: kernel test robot <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]> Acked-by: Michael Ellerman <[email protected]> (powerpc) Signed-off-by: Wolfram Sang <[email protected]>
1 parent e05e470 commit 2dec3a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/macintosh/ams/ams-i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ enum ams_i2c_cmd {
5858

5959
static int ams_i2c_probe(struct i2c_client *client,
6060
const struct i2c_device_id *id);
61-
static int ams_i2c_remove(struct i2c_client *client);
61+
static void ams_i2c_remove(struct i2c_client *client);
6262

6363
static const struct i2c_device_id ams_id[] = {
6464
{ "MAC,accelerometer_1", 0 },

0 commit comments

Comments
 (0)