]> www.infradead.org Git - users/willy/linux.git/commit
ASoC: amd: acp: move chip->flag variable assignment
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Mon, 17 Jun 2024 07:28:36 +0000 (12:58 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 19 Jun 2024 17:32:06 +0000 (18:32 +0100)
commit379bcd2c9197bf2c429434e8a01cea0ee1852316
treef8a4e75c652c18f523c46e96652701885172a5ab
parent70fa3900c3ed92158628710e81d274e5cb52f92b
ASoC: amd: acp: move chip->flag variable assignment

chip->flag variable assignment will be skipped when acp platform device
creation is skipped. In this case chip>flag value will not be set.
chip->flag variable should be assigned along with other structure
variables for 'chip' structure. Move chip->flag variable assignment
prior to acp platform device creation.

Fixes: 3a94c8ad0aae ("ASoC: amd: acp: add code for scanning acp pdm controller")
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://msgid.link/r/20240617072844.871468-3-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/acp-pci.c