]> git.baikalelectronics.ru Git - kernel.git/commit
soc: ixp4xx: qmgr: Fix an NULL vs IS_ERR() check in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 6 May 2019 06:31:08 +0000 (08:31 +0200)
committerOlof Johansson <olof@lixom.net>
Thu, 16 May 2019 17:53:11 +0000 (10:53 -0700)
commit9472d1b8de7b5bbd5d68f577af7dabf80a09c129
tree9779d6bffed17cfbaf45c32e50a880bf6136785e
parent0c045aeeb987456ec150f4709f96551afe682b88
soc: ixp4xx: qmgr: Fix an NULL vs IS_ERR() check in probe

The devm_ioremap_resource() function doesn't retunr NULL, it returns
error pointers.

Fixes: 73b9ba68bd83 ("soc: ixp4xx: qmgr: Pass resources")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/soc/ixp4xx/ixp4xx-qmgr.c