Skip to content

Commit 502df79

Browse files
chleroyBartosz Golaszewski
authored and
Bartosz Golaszewski
committed
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 <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 95e827a commit 502df79

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpio/gpiolib.c

+3
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,9 @@ int gpiochip_add_data_with_key(struct gpio_chip *gc, void *data,
715715
* a poison instead.
716716
*/
717717
gc->base = base;
718+
} else {
719+
dev_warn(&gdev->dev,
720+
"Static allocation of GPIO base is deprecated, use dynamic allocation.\n");
718721
}
719722
gdev->base = base;
720723

0 commit comments

Comments
 (0)