Skip to content

Commit d8ce38f

Browse files
geertutorvalds
authored andcommitted
sh: sh7757: remove nonexistent GPIO_PT[JLNQ]7_RESV to fix pinctrl registration
Commit 3810e96 ("sh: modify pinmux for SH7757 2nd cut") renamed GPIO_PT[JLNQ]7 to GPIO_PT[JLNQ]7_RESV, and removed the existing users from the pinmux_pins[] array. However, pinmux_pins[] is initialized through PINMUX_GPIO(), using designated array initializers, where the GPIO_* enums serve as indices. Hence entries were not really removed, but replaced by (zero-filled) holes. Such entries are treated as pin zero, which was registered before, thus leading to pinctrl registration failures, as seen on sh7722: sh-pfc pfc-sh7722: pin 0 already registered sh-pfc pfc-sh7722: error during pin registration sh-pfc pfc-sh7722: could not register: -22 sh-pfc: probe of pfc-sh7722 failed with error -22 Remove GPIO_PT[JLNQ]7_RESV from the enum to fix this. Link: http://lkml.kernel.org/r/1505205657-18012-3-git-send-email-geert+renesas@glider.be Fixes: 3810e96 ("sh: modify pinmux for SH7757 2nd cut") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Cc: Jacopo Mondi <jacopo+renesas@jmondi.org> Cc: Magnus Damm <magnus.damm@gmail.com> Cc: Rich Felker <dalias@libc.org> Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b78412b commit d8ce38f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎arch/sh/include/cpu-sh4/cpu/sh7757.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,23 @@ enum {
4040

4141
/* PTJ */
4242
GPIO_PTJ0, GPIO_PTJ1, GPIO_PTJ2, GPIO_PTJ3,
43-
GPIO_PTJ4, GPIO_PTJ5, GPIO_PTJ6, GPIO_PTJ7_RESV,
43+
GPIO_PTJ4, GPIO_PTJ5, GPIO_PTJ6,
4444

4545
/* PTK */
4646
GPIO_PTK0, GPIO_PTK1, GPIO_PTK2, GPIO_PTK3,
4747
GPIO_PTK4, GPIO_PTK5, GPIO_PTK6, GPIO_PTK7,
4848

4949
/* PTL */
5050
GPIO_PTL0, GPIO_PTL1, GPIO_PTL2, GPIO_PTL3,
51-
GPIO_PTL4, GPIO_PTL5, GPIO_PTL6, GPIO_PTL7_RESV,
51+
GPIO_PTL4, GPIO_PTL5, GPIO_PTL6,
5252

5353
/* PTM */
5454
GPIO_PTM0, GPIO_PTM1, GPIO_PTM2, GPIO_PTM3,
5555
GPIO_PTM4, GPIO_PTM5, GPIO_PTM6, GPIO_PTM7,
5656

5757
/* PTN */
5858
GPIO_PTN0, GPIO_PTN1, GPIO_PTN2, GPIO_PTN3,
59-
GPIO_PTN4, GPIO_PTN5, GPIO_PTN6, GPIO_PTN7_RESV,
59+
GPIO_PTN4, GPIO_PTN5, GPIO_PTN6,
6060

6161
/* PTO */
6262
GPIO_PTO0, GPIO_PTO1, GPIO_PTO2, GPIO_PTO3,
@@ -68,7 +68,7 @@ enum {
6868

6969
/* PTQ */
7070
GPIO_PTQ0, GPIO_PTQ1, GPIO_PTQ2, GPIO_PTQ3,
71-
GPIO_PTQ4, GPIO_PTQ5, GPIO_PTQ6, GPIO_PTQ7_RESV,
71+
GPIO_PTQ4, GPIO_PTQ5, GPIO_PTQ6,
7272

7373
/* PTR */
7474
GPIO_PTR0, GPIO_PTR1, GPIO_PTR2, GPIO_PTR3,

0 commit comments

Comments
 (0)