From: Wolfram Sang Date: Mon, 14 Jul 2008 20:38:26 +0000 (+0200) Subject: i2c-pca-platform: Fix error code X-Git-Tag: v2.6.27-rc1~1077^2~34 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7650da023eb05426812bbf8999b69dc93fee67ab;p=linux-2.6-omap-h63xx.git i2c-pca-platform: Fix error code Fix errorcode to be more descriptive when ioremap fails. Signed-off-by: Wolfram Sang Signed-off-by: Jean Delvare --- diff --git a/drivers/i2c/busses/i2c-pca-platform.c b/drivers/i2c/busses/i2c-pca-platform.c index 9d75f51e8f0..6bb15ad0a6b 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;