projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d4d159
)
i2c: arb: gpio-challenge: stop double error reporting
author
Peter Rosin
<peda@axentia.se>
Mon, 3 Apr 2017 08:14:06 +0000
(10:14 +0200)
committer
Peter Rosin
<peda@axentia.se>
Mon, 3 Apr 2017 12:07:32 +0000
(14:07 +0200)
i2c_mux_add_adapter already logs a message on failure.
Reviewed-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Peter Rosin <peda@axentia.se>
drivers/i2c/muxes/i2c-arb-gpio-challenge.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
index 86fc2d4c081b2eb4f265d7d69cd485d9ca9ec120..812b8cff265fd1be1694ec25ac0dc1d5a908c705 100644
(file)
--- a/
drivers/i2c/muxes/i2c-arb-gpio-challenge.c
+++ b/
drivers/i2c/muxes/i2c-arb-gpio-challenge.c
@@
-202,10
+202,8
@@
static int i2c_arbitrator_probe(struct platform_device *pdev)
/* Actually add the mux adapter */
ret = i2c_mux_add_adapter(muxc, 0, 0, 0);
- if (ret) {
- dev_err(dev, "Failed to add adapter\n");
+ if (ret)
i2c_put_adapter(muxc->parent);
- }
return ret;
}