Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1216248 > unrolled thread

[PATCH 1/2] ASoC: fsl-asoc-card: put ASRC OF node in case of unknown device

Started by"Maciej S. Szmigiero" <mail@maciej.szmigiero.name>
First post2015-08-31 17:10 +0200
Last post2015-08-31 17:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 1/2] ASoC: fsl-asoc-card: put ASRC OF node in case of unknown  device "Maciej S. Szmigiero" <mail@maciej.szmigiero.name> - 2015-08-31 17:10 +0200

#1216248 — [PATCH 1/2] ASoC: fsl-asoc-card: put ASRC OF node in case of unknown device

From"Maciej S. Szmigiero" <mail@maciej.szmigiero.name>
Date2015-08-31 17:10 +0200
Subject[PATCH 1/2] ASoC: fsl-asoc-card: put ASRC OF node in case of unknown device
Message-ID<q3ySD-2SC-29@gated-at.bofh.it>
In case of unknown DT compatible device the ASRC OF node
possibly acquired earlier by of_parse_phandle() has
to be put before returning from probe method.

Signed-off-by: Maciej Szmigiero <mail@maciej.szmigiero.name>
---
 sound/soc/fsl/fsl-asoc-card.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c
index 5aeb6ed..96f55ae 100644
--- a/sound/soc/fsl/fsl-asoc-card.c
+++ b/sound/soc/fsl/fsl-asoc-card.c
@@ -488,7 +488,8 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)
 		priv->dai_fmt |= SND_SOC_DAIFMT_CBM_CFM;
 	} else {
 		dev_err(&pdev->dev, "unknown Device Tree compatible\n");
-		return -EINVAL;
+		ret = -EINVAL;
+		goto asrc_fail;
 	}
 
 	/* Common settings for corresponding Freescale CPU DAI driver */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web