Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84b90e0c authored by Charles Keepax's avatar Charles Keepax Committed by Linus Walleij
Browse files

pinctrl: samsung: Remove unused local variable



The local variable drvdata is not used in samsung_gpio_set_direction.

Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 50842cbd
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -566,13 +566,11 @@ static int samsung_gpio_set_direction(struct gpio_chip *gc,
{
{
	const struct samsung_pin_bank_type *type;
	const struct samsung_pin_bank_type *type;
	struct samsung_pin_bank *bank;
	struct samsung_pin_bank *bank;
	struct samsung_pinctrl_drv_data *drvdata;
	void __iomem *reg;
	void __iomem *reg;
	u32 data, mask, shift;
	u32 data, mask, shift;


	bank = gpiochip_get_data(gc);
	bank = gpiochip_get_data(gc);
	type = bank->type;
	type = bank->type;
	drvdata = bank->drvdata;


	reg = bank->pctl_base + bank->pctl_offset
	reg = bank->pctl_base + bank->pctl_offset
			+ type->reg_offset[PINCFG_TYPE_FUNC];
			+ type->reg_offset[PINCFG_TYPE_FUNC];