diff options
author | Wei Yongjun <weiyj.lk@gmail.com> | 2016-08-12 07:45:18 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-08-12 08:29:12 -0400 |
commit | 979cf59acc9d634cc140aadd0d2915947ab303cc (patch) | |
tree | 0ed6a79da70d7601edef19c14b39501d164eaa2a | |
parent | 2392f7fd695246df4fb5f0b5fb88ce37cdb01764 (diff) |
ASoC: Intel: Skylake: Fix error return code in skl_probe()
Fix to return error code -ENODEV from the error handling
case instead of 0, as done elsewhere in this function.
Fixes: 87b2bdf02278 ("ASoC: Intel: Skylake: Initialize NHLT table")
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Acked-By: Vinod Koul <vinod.kou@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/intel/skylake/skl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c index cd59536a761d..e3e764167765 100644 --- a/sound/soc/intel/skylake/skl.c +++ b/sound/soc/intel/skylake/skl.c | |||
@@ -672,8 +672,10 @@ static int skl_probe(struct pci_dev *pci, | |||
672 | 672 | ||
673 | skl->nhlt = skl_nhlt_init(bus->dev); | 673 | skl->nhlt = skl_nhlt_init(bus->dev); |
674 | 674 | ||
675 | if (skl->nhlt == NULL) | 675 | if (skl->nhlt == NULL) { |
676 | err = -ENODEV; | ||
676 | goto out_free; | 677 | goto out_free; |
678 | } | ||
677 | 679 | ||
678 | skl_nhlt_update_topology_bin(skl); | 680 | skl_nhlt_update_topology_bin(skl); |
679 | 681 | ||