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

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

parent 1681956c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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 = {