[alsa-devel] [PATCH 1/3] ASoC: SAMSUNG: Fix initial return value

Jassi Brar jassisinghbrar at gmail.com
Fri Dec 3 10:45:33 CET 2010


On Fri, Dec 3, 2010 at 6:27 PM, Seungwhan Youn <sw.youn at samsung.com> wrote:
> This patch fixed intial return value to be a '0' as asuccess on
> set_audio_clock_heirachy(). This avoids unintended error on initialize.
>
> Signed-off-by: Seungwhan Youn <sw.youn at samsung.com>
> ---
>  sound/soc/s3c24xx/smdk_spdif.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/sound/soc/s3c24xx/smdk_spdif.c b/sound/soc/s3c24xx/smdk_spdif.c
> index c8bd904..cb658d1 100644
> --- a/sound/soc/s3c24xx/smdk_spdif.c
> +++ b/sound/soc/s3c24xx/smdk_spdif.c
> @@ -28,7 +28,7 @@
>  static int set_audio_clock_heirachy(struct platform_device *pdev)
>  {
>        struct clk *fout_epll, *mout_epll, *sclk_audio0, *sclk_spdif;
> -       int ret;
> +       int ret = 0;
>
>        fout_epll = clk_get(NULL, "fout_epll");
>        if (IS_ERR(fout_epll)) {

Acked-by: Jassi Brar <jassi.brar at samsung.com>


More information about the Alsa-devel mailing list