diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-09-07 09:29:26 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-09-12 11:26:40 +0200 |
commit | 41470c379b4f8d9a1513d930338fadfbccc287b6 (patch) | |
tree | 5e82a8715fb7d81877734b05834ab458b7e1b457 /drivers/pinctrl/mvebu/pinctrl-orion.c | |
parent | pinctrl: sprd: Restrict PINCTRL_SPRD to ARCH_SPRD or COMPILE_TEST (diff) | |
download | linux-41470c379b4f8d9a1513d930338fadfbccc287b6.tar.xz linux-41470c379b4f8d9a1513d930338fadfbccc287b6.zip |
pinctrl: sprd: check for allocation failure
devm_pinctrl_get() could fail with ERR_PTR(-ENOMEM) so I have added a
check for that. I also reversed the other IS_ERR() test because it was
a little confusing to test one way and then the opposite a couple lines
later.
Fixes: 41d32cfce1ae ("pinctrl: sprd: Add Spreadtrum pin control driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/mvebu/pinctrl-orion.c')
0 files changed, 0 insertions, 0 deletions