Commit 49fca97a 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 3039eb4d
......@@ -464,8 +464,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;
}
pci_set_drvdata(skl->pci, ebus);
......
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