[alsa-devel] [PATCH] ASoC: rcar: fixup rsnd_platform_call() return value
11 Oct
2013
11 Oct
'13
9:06 a.m.
Un-implemented platform callback is not error.
Signed-off-by: Kuninori Morimoto kuninori.morimoto.gx@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
4090
Age (days ago)
4090
Last active (days ago)
1 comments
2 participants
participants (2)
-
Kuninori Morimoto
-
Mark Brown