Dan Carpenter 41470c379b 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>
2017-09-12 11:26:40 +02:00
..
2017-06-16 11:08:49 +02:00
2017-08-22 15:32:28 +02:00
2017-08-31 15:44:16 +02:00
2017-08-31 15:45:29 +02:00
2017-09-07 13:51:13 -07:00
2017-09-07 13:51:13 -07:00
2014-10-29 09:28:35 +01:00