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)
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>

No differences found