Message ID | eda8ddff9d7d381a63732a183fc00bfbfc263516.1662116601.git.christophe.leroy@csgroup.eu |
---|---|
State | Accepted |
Commit | 502df79b860563d79143be7a1453c2b3224cd836 |
Headers | show |
Series | gpio: Get rid of ARCH_NR_GPIOS (v2) | expand |
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index cc9c0a12259e..4e2fcb7b0a01 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -715,6 +715,9 @@ int gpiochip_add_data_with_key(struct gpio_chip *gc, void *data, * a poison instead. */ gc->base = base; + } else { + dev_warn(&gdev->dev, + "Static allocation of GPIO base is deprecated, use dynamic allocation.\n"); } gdev->base = base;