Commit 44ced8fc authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman

ASoC: Intel: Skylake: Fix error return code in skl_probe()

commit 979cf59a upstream.

Fix to return error code -ENODEV from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 87b2bdf0 ("ASoC: Intel: Skylake: Initialize NHLT table")
Signed-off-by: default avatarWei Yongjun <weiyj.lk@gmail.com>
Acked-By: default avatarVinod Koul <vinod.kou@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5337a8ba
...@@ -659,8 +659,10 @@ static int skl_probe(struct pci_dev *pci, ...@@ -659,8 +659,10 @@ static int skl_probe(struct pci_dev *pci,
skl->nhlt = skl_nhlt_init(bus->dev); skl->nhlt = skl_nhlt_init(bus->dev);
if (skl->nhlt == NULL) if (skl->nhlt == NULL) {
err = -ENODEV;
goto out_free; goto out_free;
}
skl_nhlt_update_topology_bin(skl); skl_nhlt_update_topology_bin(skl);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment