projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c80ebe7
)
i2c-pca-platform: Fix error code
author
Wolfram Sang
<w.sang@pengutronix.de>
Mon, 14 Jul 2008 20:38:26 +0000
(22:38 +0200)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-pca-platform.c
b/drivers/i2c/busses/i2c-pca-platform.c
index 9d75f51e8f0efe648a22ff3ec33d231b42888167..6bb15ad0a6b6bc4c183eac4029220bf7355e2b53 100644
(file)
--- 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 = -E
IO
;
+ ret = -E
NOMEM
;
goto e_remap;
}
i2c->io_base = res->start;