diff options
-rw-r--r-- | drivers/pinctrl/pinctrl-falcon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-falcon.c b/drivers/pinctrl/pinctrl-falcon.c index 1d21dc226920..0b0fc2eb48e0 100644 --- a/drivers/pinctrl/pinctrl-falcon.c +++ b/drivers/pinctrl/pinctrl-falcon.c | |||
@@ -101,6 +101,7 @@ static void lantiq_load_pin_desc(struct pinctrl_pin_desc *d, int bank, int len) | |||
101 | for (i = 0; i < len; i++) { | 101 | for (i = 0; i < len; i++) { |
102 | /* strlen("ioXYZ") + 1 = 6 */ | 102 | /* strlen("ioXYZ") + 1 = 6 */ |
103 | char *name = kzalloc(6, GFP_KERNEL); | 103 | char *name = kzalloc(6, GFP_KERNEL); |
104 | |||
104 | snprintf(name, 6, "io%d", base + i); | 105 | snprintf(name, 6, "io%d", base + i); |
105 | d[i].number = base + i; | 106 | d[i].number = base + i; |
106 | d[i].name = name; | 107 | d[i].name = name; |
@@ -463,7 +464,7 @@ static int pinctrl_falcon_probe(struct platform_device *pdev) | |||
463 | &res); | 464 | &res); |
464 | if (IS_ERR(falcon_info.membase[*bank])) | 465 | if (IS_ERR(falcon_info.membase[*bank])) |
465 | return PTR_ERR(falcon_info.membase[*bank]); | 466 | return PTR_ERR(falcon_info.membase[*bank]); |
466 | 467 | ||
467 | avail = pad_r32(falcon_info.membase[*bank], | 468 | avail = pad_r32(falcon_info.membase[*bank], |
468 | LTQ_PADC_AVAIL); | 469 | LTQ_PADC_AVAIL); |
469 | pins = fls(avail); | 470 | pins = fls(avail); |