Commit 51ff939
pinctrl: ocelot: Make irq_chip immutable
Since recently, the kernel is nagging about mutable irq_chips:
[ 2.593426] gpio gpiochip0: (ocelot-gpio): not an immutable chip, please consider fixing it!
Make it const, flag it as IRQCHIP_IMMUTABLE, add the new helper
functions and call the appropriate gpiolib functions.
Signed-off-by: Michael Walle <michael@walle.cc>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220706151553.1580790-2-michael@walle.cc1 parent ef6e5d6 commit 51ff939
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1761 | 1761 | | |
1762 | 1762 | | |
1763 | 1763 | | |
| 1764 | + | |
1764 | 1765 | | |
1765 | 1766 | | |
1766 | 1767 | | |
| |||
1769 | 1770 | | |
1770 | 1771 | | |
1771 | 1772 | | |
| 1773 | + | |
1772 | 1774 | | |
1773 | 1775 | | |
1774 | 1776 | | |
| |||
1790 | 1792 | | |
1791 | 1793 | | |
1792 | 1794 | | |
1793 | | - | |
| 1795 | + | |
| 1796 | + | |
1794 | 1797 | | |
| 1798 | + | |
1795 | 1799 | | |
1796 | 1800 | | |
1797 | 1801 | | |
| |||
1800 | 1804 | | |
1801 | 1805 | | |
1802 | 1806 | | |
| 1807 | + | |
| 1808 | + | |
1803 | 1809 | | |
1804 | 1810 | | |
1805 | 1811 | | |
| |||
1863 | 1869 | | |
1864 | 1870 | | |
1865 | 1871 | | |
1866 | | - | |
| 1872 | + | |
1867 | 1873 | | |
1868 | 1874 | | |
1869 | 1875 | | |
| |||
0 commit comments