Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <lkp@intel.com>
Signed-off-by: Dan Callaghan <dcallagh@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20221018235237.2274969-1-dcallagh@chromium.org

authored by

Dan Callaghan and committed by
Tzung-Bi Shih
d8cb88f1 5f995254

+1 -3
+1 -3
drivers/platform/chrome/cros_hps_i2c.c
··· 95 95 return 0; 96 96 } 97 97 98 - static int hps_i2c_remove(struct i2c_client *client) 98 + static void hps_i2c_remove(struct i2c_client *client) 99 99 { 100 100 struct hps_drvdata *hps = i2c_get_clientdata(client); 101 101 ··· 107 107 * (i.e. powered on). 108 108 */ 109 109 hps_set_power(hps, true); 110 - 111 - return 0; 112 110 } 113 111 114 112 static int hps_suspend(struct device *dev)