Skip to content

Commit a95a1db

Browse files
Venkata-Prasad-Potturubroonie
authored andcommitted
ASoC: amd: acp: Move spin_lock and list initialization to acp-pci driver
Move spin_lock and linked list initialization from platform driver to acp-pci driver. Signed-off-by: Venkata Prasad Potturu <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent e393368 commit a95a1db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sound/soc/amd/acp/acp-pci.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ static int acp_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id
196196
chip->dev = &chip->acp_plat_dev->dev;
197197

198198
acp_machine_select(chip);
199+
200+
INIT_LIST_HEAD(&chip->stream_list);
201+
spin_lock_init(&chip->acp_lock);
199202
skip_pdev_creation:
200203
dev_set_drvdata(&pci->dev, chip);
201204
pm_runtime_set_autosuspend_delay(&pci->dev, 2000);

sound/soc/amd/acp/acp-platform.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,6 @@ int acp_platform_register(struct device *dev)
343343
return status;
344344
}
345345

346-
INIT_LIST_HEAD(&chip->stream_list);
347-
spin_lock_init(&chip->acp_lock);
348-
349346
return 0;
350347
}
351348
EXPORT_SYMBOL_NS_GPL(acp_platform_register, "SND_SOC_ACP_COMMON");

0 commit comments

Comments
 (0)