projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6413d54
)
ASoC: cs42l73: Return proper error code if device id mismatch
author
Axel Lin
<axel.lin@gmail.com>
Sat, 19 Nov 2011 02:15:53 +0000
(10:15 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Mon, 21 Nov 2011 17:05:52 +0000
(17:05 +0000)
Return -ENODEV instead of 0 if device id mismatch.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/cs42l73.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/cs42l73.c
b/sound/soc/codecs/cs42l73.c
index 6fe259aceb7b2790463b0dec3addc6bc0e9e0add..fdd8aa207730ad9015b8ffe41f4ec601afa88f8a 100644
(file)
--- a/
sound/soc/codecs/cs42l73.c
+++ b/
sound/soc/codecs/cs42l73.c
@@
-1369,6
+1369,7
@@
static __devinit int cs42l73_i2c_probe(struct i2c_client *i2c_client,
if (devid != CS42L73_DEVID) {
+ ret = -ENODEV;
dev_err(&i2c_client->dev,
"CS42L73 Device ID (%X). Expected %X\n",
devid, CS42L73_DEVID);