aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Callaghan <[email protected]>2022-10-19 10:52:37 +1100
committerTzung-Bi Shih <[email protected]>2022-10-19 09:52:08 +0800
commitd8cb88f1541fdc3602dbc87ede78ec704c11546f (patch)
tree990d174a31cb8ccee81867dd9d05453f3e8dac55
parent5f9952548d91263eaf70a2ca71f8897c2a638cf1 (diff)
platform/chrome: cros_hps_i2c: make remove callback return void
Commit ed5c2f5fd10d ("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: 5f9952548d91 ("platform/chrome: add a driver for HPS") Reported-by: kernel test robot <[email protected]> Signed-off-by: Dan Callaghan <[email protected]> Signed-off-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--drivers/platform/chrome/cros_hps_i2c.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/platform/chrome/cros_hps_i2c.c b/drivers/platform/chrome/cros_hps_i2c.c
index 92da59d94745..62ccb1acb5de 100644
--- a/drivers/platform/chrome/cros_hps_i2c.c
+++ b/drivers/platform/chrome/cros_hps_i2c.c
@@ -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)