[alsa-devel] [PATCH 1/2] ASoC: SAMSUNG: Fix initial return value
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 --- sound/soc/samsung/smdk_spdif.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sound/soc/samsung/smdk_spdif.c b/sound/soc/samsung/smdk_spdif.c index ca779ad..56d058d 100644 --- a/sound/soc/samsung/smdk_spdif.c +++ b/sound/soc/samsung/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)) {
On Mon, Dec 6, 2010 at 7:56 AM, Seungwhan Youn sw.youn@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.
{ struct clk *fout_epll, *mout_epll, *sclk_audio0, *sclk_spdif;
- int ret;
- int ret = 0;
Acked-by: Jassi Brar jassi.brar@samsung.com
On Mon, 2010-12-06 at 07:56 +0900, Seungwhan Youn 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@samsung.com
sound/soc/samsung/smdk_spdif.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sound/soc/samsung/smdk_spdif.c b/sound/soc/samsung/smdk_spdif.c index ca779ad..56d058d 100644 --- a/sound/soc/samsung/smdk_spdif.c +++ b/sound/soc/samsung/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)) {
Both
Acked-by: Liam Girdwood lrg@slimlogic.co.uk
On Mon, Dec 06, 2010 at 12:35:54PM +0000, Liam Girdwood wrote:
Both
Acked-by: Liam Girdwood lrg@slimlogic.co.uk
Applied, thanks.
participants (4)
-
Jassi Brar
-
Liam Girdwood
-
Mark Brown
-
Seungwhan Youn