projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[ALSA] aoa: platform function gpio: ignore errors from functions that don't exist
[firefly-linux-kernel-4.4.55.git]
/
sound
/
aoa
/
core
/
snd-aoa-gpio-pmf.c
diff --git
a/sound/aoa/core/snd-aoa-gpio-pmf.c
b/sound/aoa/core/snd-aoa-gpio-pmf.c
index 3d57fd1aec4b6888c6d4664015404425143c6285..2836c3218391c549156e0b3e53048daf6ec64cd1 100644
(file)
--- a/
sound/aoa/core/snd-aoa-gpio-pmf.c
+++ b/
sound/aoa/core/snd-aoa-gpio-pmf.c
@@
-18,7
+18,7
@@
static void pmf_gpio_set_##name(struct gpio_runtime *rt, int on)\
\
if (unlikely(!rt)) return; \
rc = pmf_call_function(rt->node, #name "-mute", &args); \
- if (rc
)
\
+ if (rc
&& rc != -ENODEV)
\
printk(KERN_WARNING "pmf_gpio_set_" #name \
" failed, rc: %d\n", rc); \
rt->implementation_private &= ~(1<<bit); \