summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt1015p.c
diff options
context:
space:
mode:
authorJack Yu <jack.yu@realtek.com>2021-03-12 02:45:15 +0000
committerMark Brown <broonie@kernel.org>2021-03-12 18:23:49 +0000
commit464b489a7885d6a89b0dfa7b7f1f56e2db80700d (patch)
tree03a9af7b5eab77515b14920ad847325108f107e1 /sound/soc/codecs/rt1015p.c
parentb7c7203a1f751348f35fc4bcb157572d303f7573 (diff)
ASoC: rt1015p: add acpi device id for rt1015p
Add acpi device id for rt1015p. Signed-off-by: Jack Yu <jack.yu@realtek.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/949671bd00c14b6d9aa5e85cc14be5d4@realtek.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt1015p.c')
-rw-r--r--sound/soc/codecs/rt1015p.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt1015p.c b/sound/soc/codecs/rt1015p.c
index 671f2a2130fe..39f4c4ed2ab8 100644
--- a/sound/soc/codecs/rt1015p.c
+++ b/sound/soc/codecs/rt1015p.c
@@ -4,6 +4,7 @@
//
// Copyright 2020 The Linux Foundation. All rights reserved.
+#include <linux/acpi.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/err.h>
@@ -130,10 +131,19 @@ static const struct of_device_id rt1015p_device_id[] = {
MODULE_DEVICE_TABLE(of, rt1015p_device_id);
#endif
+#ifdef CONFIG_ACPI
+static const struct acpi_device_id rt1015p_acpi_match[] = {
+ { "RTL1015", 0},
+ { },
+};
+MODULE_DEVICE_TABLE(acpi, rt1015p_acpi_match);
+#endif
+
static struct platform_driver rt1015p_platform_driver = {
.driver = {
.name = "rt1015p",
.of_match_table = of_match_ptr(rt1015p_device_id),
+ .acpi_match_table = ACPI_PTR(rt1015p_acpi_match),
},
.probe = rt1015p_platform_probe,
};