pinctrl: ingenic: checking for NULL instead of IS_ERR()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Jun 2017 09:12:09 +0000 (12:12 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Jun 2017 09:36:17 +0000 (11:36 +0200)
commite7f4c4bf99ad5edca35ccc18105daf5279b54919
tree5d6ac44dcaabd583f2880c07a28324cfa5c6ea00
parent1bd303dc04c3f744474e77c153575087b657f7e1
pinctrl: ingenic: checking for NULL instead of IS_ERR()

devm_pinctrl_register() returns error pointers, it doesn't return NULL.

Fixes: b5c23aa46537 ("pinctrl: add a pinctrl driver for the Ingenic jz47xx SoCs")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-ingenic.c