pinctrl: ma35: Use int type to store negative error codes
Change the 'ret' variable in ma35_pinctrl_parse_functions() from u32 to int, as it needs to store either negative error codes or zero returned by ma35_pinctrl_parse_groups(). No effect on runtime. Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>pull/1354/merge
parent
decd50c19f
commit
0fd0f79aec
|
|
@ -1038,7 +1038,8 @@ static int ma35_pinctrl_parse_functions(struct fwnode_handle *fwnode, struct ma3
|
|||
struct group_desc *grp;
|
||||
static u32 grp_index;
|
||||
const char **groups;
|
||||
u32 ret, i = 0;
|
||||
u32 i = 0;
|
||||
int ret;
|
||||
|
||||
dev_dbg(npctl->dev, "parse function(%d): %s\n", index, np->name);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue