Skip to content

Commit

Permalink
ASoC: rcar: fixup rsnd_platform_call() return value
Browse files Browse the repository at this point in the history
Un-implemented platform callback is not error.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Oct 11, 2013
1 parent 55e5b6f commit 740ad6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/sh/rcar/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))

/*
Expand Down

0 comments on commit 740ad6c

Please sign in to comment.