mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 13:37:36 +02:00
ASoC: Intel: Skylake: Fix error return code in skl_probe()
commit979cf59accupstream. Fix to return error code -ENODEV from the error handling case instead of 0, as done elsewhere in this function. Fixes:87b2bdf022("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3039eb4d8a
commit
49fca97a99
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user