]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: davinci: Fix the number of controllers allocated
authorLokesh Vutla <lokeshvutla@ti.com>
Thu, 28 Jan 2016 13:38:51 +0000 (19:08 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 10 Feb 2016 10:00:49 +0000 (11:00 +0100)
commit434281c414a9f3ebe94b85e22410fa00c9b61044
treed82cb88cd586ea1dc5e2a8a09c3237295edcbdc9
parent3fc1008254cf82c8218ae7e13dd1da7ad441589f
gpio: davinci: Fix the number of controllers allocated

Driver only needs to allocate for [ngpio / 32] controllers,
as each controller handles 32 gpios. But the current driver
allocates for ngpio of which the extra allocated are unused.
Fix it be registering only the required number of controllers.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-davinci.c