summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorchrome-bot <chrome-bot@google.com>2012-02-06 17:03:28 -0800
committerGerrit Code Review <gerrit@gerrit-int.golo.chromium.org>2012-02-06 17:03:28 -0800
commitd3e1de758cfa3a7dd990f0fb63eddbb1ae870418 (patch)
tree722091d94d80571eb74130a0f6ddee1fc93fc174 /common
parent1f0e7dc97b1a0e1cb6e831264be96071a46ff4ca (diff)
parent53c1c20fb8d615992e3c2f76646d6af9492dd18d (diff)
downloadchrome-ec-d3e1de758cfa3a7dd990f0fb63eddbb1ae870418.tar.gz
Merge "Additional compilation fix-ups for non-LM4 targets"
Diffstat (limited to 'common')
-rw-r--r--common/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/main.c b/common/main.c
index bf27cae30f..79533b9411 100644
--- a/common/main.c
+++ b/common/main.c
@@ -25,7 +25,9 @@
#include "pwm_commands.h"
#include "system.h"
#include "task.h"
+#ifdef CONFIG_TEMP_SENSOR
#include "temp_sensor.h"
+#endif
#include "timer.h"
#include "uart.h"
#include "vboot.h"
@@ -81,7 +83,9 @@ int main(void)
power_button_init();
adc_init();
usb_charge_init();
+#ifdef CONFIG_CHARGER
charger_init();
+#endif
/* Print the reset cause */
uart_printf("\n\n--- Chrome EC initialized! ---\n");