]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitba871fc9ce5325a439b0f570e981706f04908fc7
tree64f1a18a6db51faabe1810fdda08133838c7553d
parentfea9872ce4b9f6498ac98f31495024a4303d9f1a
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