We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d452ac commit 11f74f4Copy full SHA for 11f74f4
sound/soc/intel/avs/core.c
@@ -445,6 +445,8 @@ static int avs_pci_probe(struct pci_dev *pci, const struct pci_device_id *id)
445
adev = devm_kzalloc(dev, sizeof(*adev), GFP_KERNEL);
446
if (!adev)
447
return -ENOMEM;
448
+ bus = &adev->base.core;
449
+
450
ret = avs_bus_init(adev, pci, id);
451
if (ret < 0) {
452
dev_err(dev, "failed to init avs bus: %d\n", ret);
@@ -455,7 +457,6 @@ static int avs_pci_probe(struct pci_dev *pci, const struct pci_device_id *id)
455
457
if (ret < 0)
456
458
return ret;
459
- bus = &adev->base.core;
460
bus->addr = pci_resource_start(pci, 0);
461
bus->remap_addr = pci_ioremap_bar(pci, 0);
462
if (!bus->remap_addr) {
0 commit comments