diff options
author | Stephen Rothwell | 2022-08-26 15:26:50 +1000 |
---|---|---|
committer | Linus Walleij | 2022-08-26 15:16:56 +0200 |
commit | bbe2a5d87602ce0ac206e9f41fca9bd76d75da11 (patch) | |
tree | 831d0c1dc337b2a1656ab1414cc70ba2813dcae7 | |
parent | 1681956cb79c99371024cec0b9536fbdd73d04c3 (diff) |
pinctrl: fixup for "i2c: Make remove callback return void"
Fix up the build.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Link: https://lore.kernel.org/r/20220826152650.2c55e482@canb.auug.org.au
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/pinctrl/pinctrl-cy8c95x0.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinctrl-cy8c95x0.c b/drivers/pinctrl/pinctrl-cy8c95x0.c index a29df0920f4f..05791212822e 100644 --- a/drivers/pinctrl/pinctrl-cy8c95x0.c +++ b/drivers/pinctrl/pinctrl-cy8c95x0.c @@ -1352,14 +1352,12 @@ err_exit: 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 = { |