提交 7650da02 编写于 作者: W Wolfram Sang 提交者: Jean Delvare

i2c-pca-platform: Fix error code

Fix errorcode to be more descriptive when ioremap fails.
Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
Signed-off-by: NJean Delvare <khali@linux-fr.org>
上级 c80ebe79
...@@ -163,7 +163,7 @@ static int __devinit i2c_pca_pf_probe(struct platform_device *pdev) ...@@ -163,7 +163,7 @@ static int __devinit i2c_pca_pf_probe(struct platform_device *pdev)
i2c->reg_base = ioremap(res->start, res_len(res)); i2c->reg_base = ioremap(res->start, res_len(res));
if (!i2c->reg_base) { if (!i2c->reg_base) {
ret = -EIO; ret = -ENOMEM;
goto e_remap; goto e_remap;
} }
i2c->io_base = res->start; i2c->io_base = res->start;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册