gpio: mt7621: Make the irqchip immutable
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Tue, 13 Sep 2022 16:46:38 +0000 (18:46 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 14 Sep 2022 12:18:08 +0000 (14:18 +0200)
commit09eed5a1ed3c752892663976837eb4244c2f1984
tree9a306e419ef2334c779b5b142ef1a747018869b0
parent94e9bc73d85aa6ecfe249e985ff57abe0ab35f34
gpio: mt7621: Make the irqchip immutable

Commit 6c846d026d49 ("gpio: Don't fiddle with irqchips marked as
immutable") added a warning to indicate if the gpiolib is altering the
internals of irqchips.  Following this change the following warnings
are now observed for the mt7621 driver:

gpio gpiochip0: (1e000600.gpio-bank0): not an immutable chip, please consider fixing it!
gpio gpiochip1: (1e000600.gpio-bank1): not an immutable chip, please consider fixing it!
gpio gpiochip2: (1e000600.gpio-bank2): not an immutable chip, please consider fixing it!

Fix this by making the irqchip in the mt7621 driver immutable.

Tested-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-mt7621.c