]> git.baikalelectronics.ru Git - kernel.git/commit
soc: ixp4xx: npe: Fix an IS_ERR() vs NULL check in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 18 Jun 2019 11:54:10 +0000 (14:54 +0300)
committerOlof Johansson <olof@lixom.net>
Tue, 18 Jun 2019 13:47:59 +0000 (06:47 -0700)
commit3a8dff334db963f1f5f4a884db4b3dba8a17ce8d
tree9626bcbde0016f7707b34adfbd9904eea8d39f06
parent8c32e7e6eadcdd36a421a0b9cce7e430882921a1
soc: ixp4xx: npe: Fix an IS_ERR() vs NULL check in probe

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

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