summary refs log tree commit diff
path: root/sound/soc/codecs/adau7002.c
diff options
context:
space:
mode:
authorAkshu Agrawal <akshu.agrawal@amd.com>2018-02-16 13:11:12 +0530
committerMark Brown <broonie@kernel.org>2018-02-19 16:53:10 +0000
commitba7a3a971d2726affba6335496b5452a6e288e61 (patch)
tree5f83f3be2d6f846cb3151bbcddde337d0c558d99 /sound/soc/codecs/adau7002.c
parentd5bc548469dae9cd83f6553437637b0d0b7d5c5c (diff)
downloadlinux-ba7a3a971d2726affba6335496b5452a6e288e61.tar.gz
ASoC: ADAU7002: Adding ACPI id
Adding ACPI entry id for probing the driver.

Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/adau7002.c')
-rw-r--r--sound/soc/codecs/adau7002.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/codecs/adau7002.c b/sound/soc/codecs/adau7002.c
index 49475e36a4e4..fdff86878287 100644
--- a/sound/soc/codecs/adau7002.c
+++ b/sound/soc/codecs/adau7002.c
@@ -7,6 +7,7 @@
  * Licensed under the GPL-2.
  */
 
+#include <linux/acpi.h>
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/of.h>
@@ -69,10 +70,19 @@ static const struct of_device_id adau7002_dt_ids[] = {
 MODULE_DEVICE_TABLE(of, adau7002_dt_ids);
 #endif
 
+#ifdef CONFIG_ACPI
+static const struct acpi_device_id adau7002_acpi_match[] = {
+	{ "ADAU7002", 0 },
+	{},
+};
+MODULE_DEVICE_TABLE(acpi, adau7002_acpi_match);
+#endif
+
 static struct platform_driver adau7002_driver = {
 	.driver = {
 		.name = "adau7002",
 		.of_match_table	= of_match_ptr(adau7002_dt_ids),
+		.acpi_match_table = ACPI_PTR(adau7002_acpi_match),
 	},
 	.probe = adau7002_probe,
 	.remove = adau7002_remove,