mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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>
This commit is contained in:
parent
95e827a1b0
commit
502df79b86
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue