aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/rdc321x-southbridge.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-04-24 21:24:21 -0400
committerLee Jones <lee.jones@linaro.org>2014-06-03 03:11:17 -0400
commit1ec93b9b176b3c4e065c326ccf40458fcc01e6c0 (patch)
treee84e8d92db81ffc3c6d5baccc5949bfb9b7bf3a8 /drivers/mfd/rdc321x-southbridge.c
parent51f1f1cb24b870db44edcab56ffd89ecf8ce09e8 (diff)
mfd: rdc321x: Fix off-by-one for ngpio setting
The valid gpio is GPIO0 ~ GPIO58, so ngpio should be 59. This patch also renames RDC321X_MAX_GPIO to RDC321X_NUM_GPIO because it actually means the number of available GPIOs. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/rdc321x-southbridge.c')
-rw-r--r--drivers/mfd/rdc321x-southbridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/rdc321x-southbridge.c b/drivers/mfd/rdc321x-southbridge.c
index c79569750be9..6575585f1d1f 100644
--- a/drivers/mfd/rdc321x-southbridge.c
+++ b/drivers/mfd/rdc321x-southbridge.c
@@ -38,7 +38,7 @@ static struct resource rdc321x_wdt_resource[] = {
38}; 38};
39 39
40static struct rdc321x_gpio_pdata rdc321x_gpio_pdata = { 40static struct rdc321x_gpio_pdata rdc321x_gpio_pdata = {
41 .max_gpios = RDC321X_MAX_GPIO, 41 .max_gpios = RDC321X_NUM_GPIO,
42}; 42};
43 43
44static struct resource rdc321x_gpio_resources[] = { 44static struct resource rdc321x_gpio_resources[] = {