Home
last modified time | relevance | path

Searched hist:"068 cfb9a0fd908747f29d048719f254e21b9dad5" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-moore.cdiff 068cfb9a0fd908747f29d048719f254e21b9dad5 Thu Sep 20 01:21:50 CDT 2018 Wei Yongjun <weiyongjun1@huawei.com> pinctrl: mediatek: moore: fix return value check in mtk_moore_pinctrl_probe()

In case of error, the function devm_kmalloc_array() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check should be
replaced with NULL test.

Fixes: b7d7f9eeca55 ("pinctrl: mediatek: extend struct mtk_pin_desc which per-pin driver depends on")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>