ASoC: SAMSUNG: Fix initial return value
authorSeungwhan Youn <sw.youn@samsung.com>
Sun, 5 Dec 2010 22:56:59 +0000 (07:56 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 6 Dec 2010 14:13:44 +0000 (14:13 +0000)
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@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/samsung/smdk_spdif.c

index ca779ad1613c05c43b4c387dde983e6b458b6704..56d058d3fa0c3d49a0cdff75961e054cf1596280 100644 (file)
@@ -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)) {