pinctrl: ti: fix error return code of ti_iodelay_dt_node_to_map()
authorJunlin Yang <yangjunlin@yulong.com>
Tue, 30 Mar 2021 06:26:55 +0000 (14:26 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 8 Apr 2021 13:57:14 +0000 (15:57 +0200)
commit57c855f742c192a42fc4f37c8aff6ebebb61ae72
tree4c3f57583373404204b7ac0196cf5a4eed726913
parentc0dadc0e47a895e95c17a4df1fa12737e1d57d6f
pinctrl: ti: fix error return code of ti_iodelay_dt_node_to_map()

when devm_kcalloc fails, use -ENOMEM instead of -EINVAL,
and consistent with other devm_kcalloc return values.

Signed-off-by: Junlin Yang <yangjunlin@yulong.com>
Link: https://lore.kernel.org/r/20210330062655.1027-1-angkery@163.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/ti/pinctrl-ti-iodelay.c