Skip to content

Commit

Permalink
ASoC: amd: acp: Move spin_lock and list initialization to acp-pci driver
Browse files Browse the repository at this point in the history
Move spin_lock and linked list initialization from platform driver to
acp-pci driver.

Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
Link: https://patch.msgid.link/20250310183201.11979-9-venkataprasad.potturu@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Venkata Prasad Potturu authored and Mark Brown committed Mar 11, 2025
1 parent e393368 commit a95a1db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions sound/soc/amd/acp/acp-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ static int acp_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id
chip->dev = &chip->acp_plat_dev->dev;

acp_machine_select(chip);

INIT_LIST_HEAD(&chip->stream_list);
spin_lock_init(&chip->acp_lock);
skip_pdev_creation:
dev_set_drvdata(&pci->dev, chip);
pm_runtime_set_autosuspend_delay(&pci->dev, 2000);
Expand Down
3 changes: 0 additions & 3 deletions sound/soc/amd/acp/acp-platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,6 @@ int acp_platform_register(struct device *dev)
return status;
}

INIT_LIST_HEAD(&chip->stream_list);
spin_lock_init(&chip->acp_lock);

return 0;
}
EXPORT_SYMBOL_NS_GPL(acp_platform_register, "SND_SOC_ACP_COMMON");
Expand Down

0 comments on commit a95a1db

Please sign in to comment.