Home
last modified time | relevance | path

Searched hist:"41470 c379b4f8d9a1513d930338fadfbccc287b6" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/pinctrl/sprd/
H A Dpinctrl-sprd.cdiff 41470c379b4f8d9a1513d930338fadfbccc287b6 Thu Sep 07 02:29:26 CDT 2017 Dan Carpenter <dan.carpenter@oracle.com> 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>