Commit d8cb88f1 authored by Dan Callaghan's avatar Dan Callaghan Committed by Tzung-Bi Shih
Browse files

platform/chrome: cros_hps_i2c: make remove callback return void



Commit ed5c2f5f ("i2c: Make remove callback return void") changed
the return type of the 'remove' callback to void, but this driver was
originally written before that change landed. Update the remove callback
to match.

Fixes: 5f995254 ("platform/chrome: add a driver for HPS")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarDan Callaghan <dcallagh@chromium.org>
Signed-off-by: default avatarTzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20221018235237.2274969-1-dcallagh@chromium.org
parent 5f995254
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ static int hps_i2c_probe(struct i2c_client *client)
	return 0;
}

static int hps_i2c_remove(struct i2c_client *client)
static void hps_i2c_remove(struct i2c_client *client)
{
	struct hps_drvdata *hps = i2c_get_clientdata(client);

@@ -107,8 +107,6 @@ static int hps_i2c_remove(struct i2c_client *client)
	 * (i.e. powered on).
	 */
	hps_set_power(hps, true);

	return 0;
}

static int hps_suspend(struct device *dev)