diff options
author | Vijendar Mukunda <[email protected]> | 2020-07-08 00:07:11 +0530 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-07-08 16:50:33 +0100 |
commit | ee3d133972f1e5d260891c4dd58adb005014414a (patch) | |
tree | 0e5101ae3bb3ecd56f9a03c862545e9f246c3ec4 | |
parent | a5911ac5790acaf98c929b826b3f7b4a438f9759 (diff) |
ASoC: amd: fixed kernel warnings
This patch will fix unused variables kernel warnings when
CONFIG_ACPI is disabled.
Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: Vijendar Mukunda <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
-rw-r--r-- | sound/soc/amd/renoir/rn-pci-acp3x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/amd/renoir/rn-pci-acp3x.c b/sound/soc/amd/renoir/rn-pci-acp3x.c index 165c93fd89e4..b943e59fc302 100644 --- a/sound/soc/amd/renoir/rn-pci-acp3x.c +++ b/sound/soc/amd/renoir/rn-pci-acp3x.c @@ -168,8 +168,10 @@ static int snd_rn_acp_probe(struct pci_dev *pci, { struct acp_dev_data *adata; struct platform_device_info pdevinfo[ACP_DEVS]; +#if defined(CONFIG_ACPI) acpi_handle handle; acpi_integer dmic_status; +#endif unsigned int irqflags; int ret, index; u32 addr; |