]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
i2c-pca-platform: Fix error code
authorWolfram Sang <w.sang@pengutronix.de>
Mon, 14 Jul 2008 20:38:26 +0000 (22:38 +0200)
committerJean Delvare <khali@mahadeva.delvare>
Mon, 14 Jul 2008 20:38:26 +0000 (22:38 +0200)
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>
drivers/i2c/busses/i2c-pca-platform.c

index 9d75f51e8f0efe648a22ff3ec33d231b42888167..6bb15ad0a6b6bc4c183eac4029220bf7355e2b53 100644 (file)
@@ -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;