ASoC: codecs: cros_ec_codec: fix 'defined but not used' warning
[linux-2.6-block.git] / sound / soc / codecs / cros_ec_codec.c
index 8d45c628e988e9eac532dd63faf8ee2ded508eb7..f23956cf4ed84bdd3137f90e8e3629e778b8a354 100644 (file)
@@ -1053,11 +1053,13 @@ static const struct of_device_id cros_ec_codec_of_match[] = {
 MODULE_DEVICE_TABLE(of, cros_ec_codec_of_match);
 #endif
 
+#ifdef CONFIG_ACPI
 static const struct acpi_device_id cros_ec_codec_acpi_id[] = {
        { "GOOG0013", 0 },
        { }
 };
 MODULE_DEVICE_TABLE(acpi, cros_ec_codec_acpi_id);
+#endif
 
 static struct platform_driver cros_ec_codec_platform_driver = {
        .driver = {