Skip to content

Commit

Permalink
staging: drivers: pinctrl: Fixed checkpatch.pl warnings
Browse files Browse the repository at this point in the history
This patch fixes two checkpatch.pl warnings

WARNING: Error trailing white space
WARNING: MIssing blank line after declaration

Signed-off-by: Anjana Sasindran <anjanasasindran123@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Anjana Sasindran authored and Linus Walleij committed Jan 21, 2015
1 parent ac5a186 commit 40b9e4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/pinctrl/pinctrl-falcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ static void lantiq_load_pin_desc(struct pinctrl_pin_desc *d, int bank, int len)
for (i = 0; i < len; i++) {
/* strlen("ioXYZ") + 1 = 6 */
char *name = kzalloc(6, GFP_KERNEL);

snprintf(name, 6, "io%d", base + i);
d[i].number = base + i;
d[i].name = name;
Expand Down Expand Up @@ -463,7 +464,7 @@ static int pinctrl_falcon_probe(struct platform_device *pdev)
&res);
if (IS_ERR(falcon_info.membase[*bank]))
return PTR_ERR(falcon_info.membase[*bank]);

avail = pad_r32(falcon_info.membase[*bank],
LTQ_PADC_AVAIL);
pins = fls(avail);
Expand Down

0 comments on commit 40b9e4f

Please sign in to comment.