summaryrefslogtreecommitdiff
path: root/sound/soc/sof/sof-pci-dev.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-05-04 15:30:32 +0100
committerMark Brown <broonie@kernel.org>2022-05-04 15:30:32 +0100
commitc0b38be14f1d843c29edc763d3df3cc741a2bf10 (patch)
tree7b4923fbd72134f891faa6866246e16b8a4b30dc /sound/soc/sof/sof-pci-dev.c
parent55d2a66cfec6a4196243940f754f5b34dd2106bf (diff)
parenta962890a5a3cce903ff7c7a19fadee63ed9efdc7 (diff)
downloadlwn-c0b38be14f1d843c29edc763d3df3cc741a2bf10.tar.gz
lwn-c0b38be14f1d843c29edc763d3df3cc741a2bf10.zip
ASoC: Pull in fixes
Cleanups for the dmaengine code build on top of current fixes.
Diffstat (limited to 'sound/soc/sof/sof-pci-dev.c')
-rw-r--r--sound/soc/sof/sof-pci-dev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/sof/sof-pci-dev.c b/sound/soc/sof/sof-pci-dev.c
index 3b0978b02f9f..d627092b399d 100644
--- a/sound/soc/sof/sof-pci-dev.c
+++ b/sound/soc/sof/sof-pci-dev.c
@@ -187,6 +187,11 @@ int sof_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
dev_dbg(&pci->dev, "PCI DSP detected");
+ if (!desc) {
+ dev_err(dev, "error: no matching PCI descriptor\n");
+ return -ENODEV;
+ }
+
if (!desc->ops) {
dev_err(dev, "error: no matching PCI descriptor ops\n");
return -ENODEV;