aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/max98357a.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/max98357a.c')
-rw-r--r--sound/soc/codecs/max98357a.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/codecs/max98357a.c b/sound/soc/codecs/max98357a.c
index f5e3dce2633a..5b1dfb1518fb 100644
--- a/sound/soc/codecs/max98357a.c
+++ b/sound/soc/codecs/max98357a.c
@@ -12,6 +12,7 @@
12 * max98357a.c -- MAX98357A ALSA SoC Codec driver 12 * max98357a.c -- MAX98357A ALSA SoC Codec driver
13 */ 13 */
14 14
15#include <linux/acpi.h>
15#include <linux/device.h> 16#include <linux/device.h>
16#include <linux/err.h> 17#include <linux/err.h>
17#include <linux/gpio.h> 18#include <linux/gpio.h>
@@ -123,10 +124,19 @@ static const struct of_device_id max98357a_device_id[] = {
123MODULE_DEVICE_TABLE(of, max98357a_device_id); 124MODULE_DEVICE_TABLE(of, max98357a_device_id);
124#endif 125#endif
125 126
127#ifdef CONFIG_ACPI
128static const struct acpi_device_id max98357a_acpi_match[] = {
129 { "MX98357A", 0 },
130 {},
131};
132MODULE_DEVICE_TABLE(acpi, max98357a_acpi_match);
133#endif
134
126static struct platform_driver max98357a_platform_driver = { 135static struct platform_driver max98357a_platform_driver = {
127 .driver = { 136 .driver = {
128 .name = "max98357a", 137 .name = "max98357a",
129 .of_match_table = of_match_ptr(max98357a_device_id), 138 .of_match_table = of_match_ptr(max98357a_device_id),
139 .acpi_match_table = ACPI_PTR(max98357a_acpi_match),
130 }, 140 },
131 .probe = max98357a_platform_probe, 141 .probe = max98357a_platform_probe,
132 .remove = max98357a_platform_remove, 142 .remove = max98357a_platform_remove,