Commit bbe2a5d8 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Linus Walleij

pinctrl: fixup for "i2c: Make remove callback return void"

Fix up the build.
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Link: https://lore.kernel.org/r/20220826152650.2c55e482@canb.auug.org.auSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 1681956c
......@@ -1352,14 +1352,12 @@ static int cy8c95x0_probe(struct i2c_client *client)
return ret;
}
static int cy8c95x0_remove(struct i2c_client *client)
static void cy8c95x0_remove(struct i2c_client *client)
{
struct cy8c95x0_pinctrl *chip = i2c_get_clientdata(client);
if (!IS_ERR_OR_NULL(chip->regulator))
regulator_disable(chip->regulator);
return 0;
}
static struct i2c_driver cy8c95x0_driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment