[PATCH] gpio: rockchip: convert to dynamic GPIO base allocation
Linus Walleij
linusw at kernel.org
Tue Apr 7 00:09:34 PDT 2026
On Mon, Mar 30, 2026 at 11:53 AM Shawn Lin <shawn.lin at rock-chips.com> wrote:
> 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 at rock-chips.com>
Reviewed-by: Linus Walleij <linusw at kernel.org>
(I personally think we should be progressive with these changes,
Bartosz may be more careful.)
> - gc->base = bank->pin_base;
> + gc->base = -1;
Can we remove the whole ->pin_base next kernel cycle if this all
goes well?
Yours,
Linus Walleij
More information about the Linux-rockchip
mailing list