diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2014-04-10 16:19:29 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-05-14 18:14:35 +0200 |
commit | 37e5eb0bae7bb4d98c2153c3c3400b5c00c3cad1 (patch) | |
tree | 30985b07cf32c1f053ebb46c1460817898cdaab9 /drivers/i2c | |
parent | 47bb27e78867997040a228328f2a631c3c7f2c82 (diff) | |
download | op-kernel-dev-37e5eb0bae7bb4d98c2153c3c3400b5c00c3cad1.zip op-kernel-dev-37e5eb0bae7bb4d98c2153c3c3400b5c00c3cad1.tar.gz |
i2c: nomadik: Don't use IS_ERR for devm_ioremap
devm_ioremap() returns NULL on error, not an error.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-nomadik.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c index 28cbe1b..32c85e9 100644 --- a/drivers/i2c/busses/i2c-nomadik.c +++ b/drivers/i2c/busses/i2c-nomadik.c @@ -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, resource_size(&adev->res)); - if (IS_ERR(dev->virtbase)) { + if (!dev->virtbase) { ret = -ENOMEM; goto err_no_mem; } |