@@ -35,7 +35,7 @@ MODULE_PARM_DESC(sof_acpi_debug, "SOF ACPI debug options (0x0 all off)");
3535
3636#define SOF_ACPI_DISABLE_PM_RUNTIME BIT(0)
3737
38- #if IS_ENABLED (CONFIG_SND_SOC_SOF_BROADWELL )
38+ #if IS_ENABLED (CONFIG_ACPI ) && IS_ENABLED ( CONFIG_SND_SOC_SOF_BROADWELL )
3939static const struct sof_dev_desc sof_acpi_broadwell_desc = {
4040 .machines = snd_soc_acpi_intel_broadwell_machines ,
4141 .resindex_lpe_base = 0 ,
@@ -51,7 +51,7 @@ static const struct sof_dev_desc sof_acpi_broadwell_desc = {
5151};
5252#endif
5353
54- #if IS_ENABLED (CONFIG_SND_SOC_SOF_BAYTRAIL )
54+ #if IS_ENABLED (CONFIG_ACPI ) && IS_ENABLED ( CONFIG_SND_SOC_SOF_BAYTRAIL )
5555
5656/* BYTCR uses different IRQ index */
5757static const struct sof_dev_desc sof_acpi_baytrailcr_desc = {
@@ -133,7 +133,7 @@ static int sof_acpi_probe(struct platform_device *pdev)
133133 if (!desc )
134134 return - ENODEV ;
135135
136- #if IS_ENABLED (CONFIG_SND_SOC_SOF_BAYTRAIL )
136+ #if IS_ENABLED (CONFIG_ACPI ) && IS_ENABLED ( CONFIG_SND_SOC_SOF_BAYTRAIL )
137137 if (desc == & sof_acpi_baytrail_desc && soc_intel_is_byt_cr (pdev ))
138138 desc = & sof_acpi_baytrailcr_desc ;
139139#endif
@@ -191,6 +191,7 @@ static int sof_acpi_remove(struct platform_device *pdev)
191191 return 0 ;
192192}
193193
194+ #ifdef CONFIG_ACPI
194195static const struct acpi_device_id sof_acpi_match [] = {
195196#if IS_ENABLED (CONFIG_SND_SOC_SOF_BROADWELL )
196197 { "INT3438" , (unsigned long )& sof_acpi_broadwell_desc },
@@ -202,6 +203,7 @@ static const struct acpi_device_id sof_acpi_match[] = {
202203 { }
203204};
204205MODULE_DEVICE_TABLE (acpi , sof_acpi_match );
206+ #endif
205207
206208/* acpi_driver definition */
207209static struct platform_driver snd_sof_acpi_driver = {
0 commit comments