summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2008-07-14 22:38:26 +0200
committerJean Delvare <khali@mahadeva.delvare>2008-07-14 22:38:26 +0200
commit7650da023eb05426812bbf8999b69dc93fee67ab (patch)
treee142395242a435d2862e2c2aa8aebd2299c0a99a
parentc80ebe7987931ec4e80abc33ebf8aa2dad0d3763 (diff)
downloadlinux-7650da023eb05426812bbf8999b69dc93fee67ab.tar.gz
linux-7650da023eb05426812bbf8999b69dc93fee67ab.tar.bz2
linux-7650da023eb05426812bbf8999b69dc93fee67ab.zip
i2c-pca-platform: Fix error code
Fix errorcode to be more descriptive when ioremap fails. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Jean Delvare <khali@linux-fr.org>
-rw-r--r--drivers/i2c/busses/i2c-pca-platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-pca-platform.c b/drivers/i2c/busses/i2c-pca-platform.c
index 9d75f51e8f0e..6bb15ad0a6b6 100644
--- a/drivers/i2c/busses/i2c-pca-platform.c
+++ b/drivers/i2c/busses/i2c-pca-platform.c
@@ -163,7 +163,7 @@ static int __devinit i2c_pca_pf_probe(struct platform_device *pdev)
i2c->reg_base = ioremap(res->start, res_len(res));
if (!i2c->reg_base) {
- ret = -EIO;
+ ret = -ENOMEM;
goto e_remap;
}
i2c->io_base = res->start;