]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: samsung: Fix off-by-one bug in gpio addresses
authorSean Paul <seanpaul@chromium.org>
Fri, 20 Jul 2012 20:58:59 +0000 (13:58 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 7 Aug 2012 06:55:52 +0000 (08:55 +0200)
commit260fdb9dab250ab13f5ce48048cac8137cd51049
treefb3c74f8c80edf4f831cd1bc49d8cfa4cb7b149e
parentd4e138455e35f4884f4cbdc5c05f1b56104012f4
gpio: samsung: Fix off-by-one bug in gpio addresses

Move gpc4 to the end of the automatically processed gpio controllers so
we don't taint the automatic offset calculation.

This bug caused all controllers coming after gpc4 to map to the
incorrect address. The result is <&gpd1 0 0 0 0> would actually map to
GPIO 0 in gpd0.

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Doug Anderson <dianders@chromium.org>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-samsung.c