]> Git Repo - linux.git/commitdiff
ASoC: amd: fixed kernel warnings
authorVijendar Mukunda <[email protected]>
Tue, 7 Jul 2020 18:37:11 +0000 (00:07 +0530)
committerMark Brown <[email protected]>
Wed, 8 Jul 2020 15:50:33 +0000 (16:50 +0100)
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]>
sound/soc/amd/renoir/rn-pci-acp3x.c

index 165c93fd89e40b4930724cd976cd7079118f7d95..b943e59fc302437580b14f45febe569819892d44 100644 (file)
@@ -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;
This page took 0.057424 seconds and 4 git commands to generate.