[alsa-devel] [PATCH] ASoC: rcar: fixup rsnd_platform_call() return value
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Fri Oct 11 09:06:34 CEST 2013
Un-implemented platform callback is not error.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
sound/soc/sh/rcar/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index fc83f0f..28c24fc 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -103,7 +103,7 @@
* rsnd_platform functions
*/
#define rsnd_platform_call(priv, dai, func, param...) \
- (!(priv->info->func) ? -ENODEV : \
+ (!(priv->info->func) ? 0 : \
priv->info->func(param))
/*
--
1.7.9.5
More information about the Alsa-devel
mailing list