pinctrl: mediatek: paris: fix return value check in mtk_paris_pinctrl_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 20 Sep 2018 06:21:28 +0000 (06:21 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 21 Sep 2018 16:00:51 +0000 (09:00 -0700)
commit184744e9a0142f30d66ee369502c8f47d25a6928
treefcfc7bbdc822c5dba69fe5020f113f498497cd97
parent69f8455f6cc78fa6cdf80d0105d7a748106271dc
pinctrl: mediatek: paris: fix return value check in mtk_paris_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: 805250982bb5 ("pinctrl: mediatek: add pinctrl-paris that implements the vendor dt-bindings")
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>
drivers/pinctrl/mediatek/pinctrl-paris.c