ARM: davinci: fix number of resources passed to davinci_gpio_register()
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Fri, 8 Nov 2013 06:45:56 +0000 (12:15 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 21 Nov 2013 14:43:28 +0000 (20:13 +0530)
commite462f1f5174893f3f5efd03a31ca014b02120f9a
tree64f1a18a6db51faabe1810fdda08133838c7553d
parent34af1ab4a2cc97721a00fce19d9fbafd9ff4b300
ARM: davinci: fix number of resources passed to davinci_gpio_register()

The davinci_gpio_register() function expects the number of
resources as the second parameter, but sizeof() resources
was passed to it due to which it was causing unexpected
behaviour. This patch fixes the same by passing the
ARRAY_SIZE() of resources.

Reported-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/dm355.c
arch/arm/mach-davinci/dm365.c
arch/arm/mach-davinci/dm644x.c
arch/arm/mach-davinci/dm646x.c