summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-04-01 12:43:32 -0700
committerChromeBot <chrome-bot@google.com>2013-04-02 14:12:56 -0700
commit50c53c0d542d6fc3184db09a35196b4c702536c5 (patch)
tree920488af21630d4dbf78fef9dbeb13b8ceeb1bfb /chip
parent5966f22a8a1928583943b57fc22e72f85d69d079 (diff)
downloadchrome-ec-50c53c0d542d6fc3184db09a35196b4c702536c5.tar.gz
Move enabling AC_PRESENT interrupt to extpower_gpio.c
The interrupt handler moved a while ago, but the code to enable the interrupt at init-time didn't. Fix that. BUG=chrome-os-partner:18256 BRANCH=none TEST=boot system. unplug AC. replug AC. UI charging indicator should update. Change-Id: Ie16aa7f6eb9e871a6e3e8ecf6733ecbdc883be0b Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/47041 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/lm4/switch.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/chip/lm4/switch.c b/chip/lm4/switch.c
index 0e5c1542af..135e722783 100644
--- a/chip/lm4/switch.c
+++ b/chip/lm4/switch.c
@@ -582,7 +582,6 @@ static void switch_init(void)
*host_get_memmap(EC_MEMMAP_SWITCHES_VERSION) = 1;
/* Enable interrupts, now that we've initialized */
- gpio_enable_interrupt(GPIO_AC_PRESENT);
gpio_enable_interrupt(GPIO_LID_SWITCHn);
gpio_enable_interrupt(GPIO_POWER_BUTTONn);
gpio_enable_interrupt(GPIO_RECOVERYn);