]>
Commit | Line | Data |
---|---|---|
83f48a73 GKH |
1 | From 979cf59acc9d634cc140aadd0d2915947ab303cc Mon Sep 17 00:00:00 2001 |
2 | From: Wei Yongjun <weiyj.lk@gmail.com> | |
3 | Date: Fri, 12 Aug 2016 11:45:18 +0000 | |
4 | Subject: ASoC: Intel: Skylake: Fix error return code in skl_probe() | |
5 | ||
6 | From: Wei Yongjun <weiyj.lk@gmail.com> | |
7 | ||
8 | commit 979cf59acc9d634cc140aadd0d2915947ab303cc upstream. | |
9 | ||
10 | Fix to return error code -ENODEV from the error handling | |
11 | case instead of 0, as done elsewhere in this function. | |
12 | ||
13 | Fixes: 87b2bdf02278 ("ASoC: Intel: Skylake: Initialize NHLT table") | |
14 | Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> | |
15 | Acked-By: Vinod Koul <vinod.kou@intel.com> | |
16 | Signed-off-by: Mark Brown <broonie@kernel.org> | |
17 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
18 | ||
19 | --- | |
20 | sound/soc/intel/skylake/skl.c | 4 +++- | |
21 | 1 file changed, 3 insertions(+), 1 deletion(-) | |
22 | ||
23 | --- a/sound/soc/intel/skylake/skl.c | |
24 | +++ b/sound/soc/intel/skylake/skl.c | |
25 | @@ -659,8 +659,10 @@ static int skl_probe(struct pci_dev *pci | |
26 | ||
27 | skl->nhlt = skl_nhlt_init(bus->dev); | |
28 | ||
29 | - if (skl->nhlt == NULL) | |
30 | + if (skl->nhlt == NULL) { | |
31 | + err = -ENODEV; | |
32 | goto out_free; | |
33 | + } | |
34 | ||
35 | skl_nhlt_update_topology_bin(skl); | |
36 |