diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2022-09-02 14:42:04 +0200 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2022-10-17 11:02:54 +0200 |
commit | 502df79b860563d79143be7a1453c2b3224cd836 (patch) | |
tree | 29eab90018c39084f7cb9269005298cafb1bc5fa /drivers/gpio | |
parent | 95e827a1b0b7c8334d24da7b4a2d17ec5aa7374c (diff) | |
download | linux-stable-502df79b860563d79143be7a1453c2b3224cd836.tar.gz linux-stable-502df79b860563d79143be7a1453c2b3224cd836.tar.bz2 linux-stable-502df79b860563d79143be7a1453c2b3224cd836.zip |
gpiolib: Warn on drivers still using static gpiobase allocation
In the preparation of getting completely rid of static gpiobase
allocation in the future, emit a warning in drivers still doing so.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpiolib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 4756ea08894f..5c64d1a412c7 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; |