From: Vijendar Mukunda Date: Tue, 7 Jul 2020 18:37:11 +0000 (+0530) Subject: ASoC: amd: fixed kernel warnings X-Git-Tag: v5.10.7~1331^2~24^2~131 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee3d133972f1e5d260891c4dd58adb005014414a;p=platform%2Fkernel%2Flinux-rpi.git ASoC: amd: fixed kernel warnings This patch will fix unused variables kernel warnings when CONFIG_ACPI is disabled. Reported-by: Randy Dunlap Signed-off-by: Vijendar Mukunda Link: https://lore.kernel.org/r/1594147044-25582-1-git-send-email-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/amd/renoir/rn-pci-acp3x.c b/sound/soc/amd/renoir/rn-pci-acp3x.c index 165c93f..b943e59 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;