Commit 37e5eb0b authored by Ulf Hansson's avatar Ulf Hansson Committed by Wolfram Sang
Browse files

i2c: nomadik: Don't use IS_ERR for devm_ioremap

devm_ioremap() returns NULL on error, not an error.

Signed-off-by: default avatarUlf Hansson <>
Acked-by: default avatarLinus Walleij <>
Signed-off-by: default avatarWolfram Sang <>
parent 47bb27e7
......@@ -999,7 +999,7 @@ static int nmk_i2c_probe(struct amba_device *adev, const struct amba_id *id)
dev->virtbase = devm_ioremap(&adev->dev, adev->res.start,
if (IS_ERR(dev->virtbase)) {
if (!dev->virtbase) {
ret = -ENOMEM;
goto err_no_mem;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment