diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-09-20 06:21:28 +0000 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-09-21 09:00:51 -0700 |
commit | 184744e9a0142f30d66ee369502c8f47d25a6928 (patch) | |
tree | fcfc7bbdc822c5dba69fe5020f113f498497cd97 /drivers/pinctrl/pinctrl-at91.h | |
parent | 69f8455f6cc78fa6cdf80d0105d7a748106271dc (diff) |
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>
Diffstat (limited to 'drivers/pinctrl/pinctrl-at91.h')
0 files changed, 0 insertions, 0 deletions