Skip to content

Commit deb7916

Browse files
metiulekmkrzk
authored andcommitted
pinctrl: samsung: choose GPIO numberspace base dynamically
Selecting it statically is deprecated and results in a warning while booting the system: gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation. Signed-off-by: Mateusz Majewski <m.majewski2@samsung.com> Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> Tested-by: Sam Protsenko <semen.protsenko@linaro.org> Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> Link: https://lore.kernel.org/r/20231006125557.212681-4-m.majewski2@samsung.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent bf128c1 commit deb7916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pinctrl/samsung/pinctrl-samsung.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ static int samsung_gpiolib_register(struct platform_device *pdev,
968968
bank->gpio_chip = samsung_gpiolib_chip;
969969

970970
gc = &bank->gpio_chip;
971-
gc->base = drvdata->pin_base + bank->pin_base;
971+
gc->base = -1; /* Dynamic allocation */
972972
gc->ngpio = bank->nr_pins;
973973
gc->parent = &pdev->dev;
974974
gc->fwnode = bank->fwnode;

0 commit comments

Comments
 (0)