brcm2708: add linux 4.19 support
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.19 / 950-0413-ASoC-tlv320aic32x4-Remove-mclk-references.patch
1 From 76203a21b47e2dcbb3619a9655cc4918e4d496a5 Mon Sep 17 00:00:00 2001
2 From: Annaliese McDermond <nh6z@nh6z.net>
3 Date: Thu, 21 Mar 2019 17:58:53 -0700
4 Subject: [PATCH 413/703] ASoC: tlv320aic32x4: Remove mclk references
5
6 commit 78f2d58a289302e56a7def96a783a7686ebf27e2 upstream.
7
8 mclk is not used by anything anymore. Remove support for it.
9 All that information now comes from the clock tree.
10
11 Signed-off-by: Annaliese McDermond <nh6z@nh6z.net>
12 Signed-off-by: Mark Brown <broonie@kernel.org>
13 ---
14 sound/soc/codecs/tlv320aic32x4.c | 7 -------
15 1 file changed, 7 deletions(-)
16
17 --- a/sound/soc/codecs/tlv320aic32x4.c
18 +++ b/sound/soc/codecs/tlv320aic32x4.c
19 @@ -53,7 +53,6 @@ struct aic32x4_priv {
20 u32 micpga_routing;
21 bool swapdacs;
22 int rstn_gpio;
23 - struct clk *mclk;
24 const char *mclk_name;
25
26 struct regulator *supply_ldo;
27 @@ -1191,12 +1190,6 @@ int aic32x4_probe(struct device *dev, st
28 aic32x4->mclk_name = "mclk";
29 }
30
31 - aic32x4->mclk = devm_clk_get(dev, "mclk");
32 - if (IS_ERR(aic32x4->mclk)) {
33 - dev_err(dev, "Failed getting the mclk. The current implementation does not support the usage of this codec without mclk\n");
34 - return PTR_ERR(aic32x4->mclk);
35 - }
36 -
37 ret = aic32x4_register_clocks(dev, aic32x4->mclk_name);
38 if (ret)
39 return ret;