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

Commit 7c580311 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Linus Walleij
Browse files

pinctrl: mvebu: armada-39x: fix incorrect total number of GPIOs



The pinctrl_gpio_range[] array described a first bank of 32 GPIOs and
a second one of 27 GPIOs. However, since there is a total of 60 MPP
pins that can be muxed as GPIOs, the second bank really has 28 GPIOs.

Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: <stable@vger.kernel.org> # v4.1+
Fixes: ee086577 ("pinctrl: mvebu: add pinctrl driver for Marvell Armada 39x")
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 27e7cd01
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -380,7 +380,7 @@ static struct mvebu_mpp_ctrl armada_39x_mpp_controls[] = {


static struct pinctrl_gpio_range armada_39x_mpp_gpio_ranges[] = {
static struct pinctrl_gpio_range armada_39x_mpp_gpio_ranges[] = {
	MPP_GPIO_RANGE(0,   0,  0, 32),
	MPP_GPIO_RANGE(0,   0,  0, 32),
	MPP_GPIO_RANGE(1,  32, 32, 27),
	MPP_GPIO_RANGE(1,  32, 32, 28),
};
};


static int armada_39x_pinctrl_probe(struct platform_device *pdev)
static int armada_39x_pinctrl_probe(struct platform_device *pdev)