Commit 979cf59a authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown

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: 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>
parent 2392f7fd
......@@ -672,8 +672,10 @@ static int skl_probe(struct pci_dev *pci,
skl->nhlt = skl_nhlt_init(bus->dev);
if (skl->nhlt == NULL)
if (skl->nhlt == NULL) {
err = -ENODEV;
goto out_free;
}
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