projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5911ac
)
ASoC: amd: fixed kernel warnings
author
Vijendar Mukunda
<Vijendar.Mukunda@amd.com>
Tue, 7 Jul 2020 18:37:11 +0000
(
00:07
+0530)
committer
Mark Brown
<broonie@kernel.org>
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 <rdunlap@infradead.org>
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link:
https://lore.kernel.org/r/1594147044-25582-1-git-send-email-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/renoir/rn-pci-acp3x.c
patch
|
blob
|
history
diff --git
a/sound/soc/amd/renoir/rn-pci-acp3x.c
b/sound/soc/amd/renoir/rn-pci-acp3x.c
index
165c93f
..
b943e59
100644
(file)
--- 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;