Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7650da02 authored by Wolfram Sang's avatar Wolfram Sang Committed by Jean Delvare
Browse files

i2c-pca-platform: Fix error code



Fix errorcode to be more descriptive when ioremap fails.

Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent c80ebe79
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;