]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpio: altera: Add missed base and label initialisations
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 18 Nov 2024 09:28:02 +0000 (11:28 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 21 Nov 2024 08:07:42 +0000 (09:07 +0100)
commitc7899503ad9c06a0c6ee2796301139731cf1f5ab
tree636b118d77129180383ffc77a347857a2294efb7
parent5bbed54ba66925ebca19092d0750630f943d7bf2
gpio: altera: Add missed base and label initialisations

During conversion driver to modern APIs the base field initial value
of the GPIO chip was moved from -1 to 0, which triggers a warning.
Add missed base initialisation as it was in the original code.

Initialise the GPIO chip label correctly as it was done by
of_mm_gpiochip_add_data() before the below mentioned change.

Fixes: 50dded8d9d62 ("gpio: altera: Drop legacy-of-mm-gpiochip.h header")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20241118095402.516989-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-altera.c