Skip to content

Commit c8079f8

Browse files
shawn1221Bartosz Golaszewski
authored andcommitted
gpio: rockchip: convert to dynamic GPIO base allocation
This driver is used on device tree based platform. Use dynamic GPIO numberspace base to suppress the warning: gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation. gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation. gpio gpiochip2: Static allocation of GPIO base is deprecated, use dynamic allocation. gpio gpiochip3: Static allocation of GPIO base is deprecated, use dynamic allocation. gpio gpiochip4: Static allocation of GPIO base is deprecated, use dynamic allocation. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Reviewed-by: Linus Walleij <linusw@kernel.org> Link: https://patch.msgid.link/1774864401-177149-1-git-send-email-shawn.lin@rock-chips.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
1 parent dd84f7c commit c8079f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpio/gpio-rockchip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ static int rockchip_gpiolib_register(struct rockchip_pin_bank *bank)
582582
bank->gpio_chip = rockchip_gpiolib_chip;
583583

584584
gc = &bank->gpio_chip;
585-
gc->base = bank->pin_base;
585+
gc->base = -1;
586586
gc->ngpio = bank->nr_pins;
587587
gc->label = bank->name;
588588
gc->parent = bank->dev;

0 commit comments

Comments
 (0)