led_pwm: Fix pulsing bug after init.
led_pwm: Fix pulsing bug after init.

When the LED code starts determining what pattern to display, the charge
state machine returns an error briefly at init.  (The error is that the
battery present status is unknown).  Once it determines the battery is
present, it no longer returns an error, but the LED code doesn't cancel
the pulsing pattern.  This commit simply fixes that bug.

BUG=None
BRANCH=firmware-nocturne-10984.B
TEST=Flash nocturne; hibernate; wake via power button, verify that the
LEDs do not pulse red continuously.

Change-Id: Ibe225ba4c136b8758948bd72d9ba688cff15d9e9
Signed-off-by: Aseda Aboagye <12c9b286316a940fd31c24070da5ab64cdd4d0e7@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1239548
Tested-by: Aseda Aboagye <12c9b286316a940fd31c24070da5ab64cdd4d0e7@chromium.org>
Commit-Queue: Aseda Aboagye <12c9b286316a940fd31c24070da5ab64cdd4d0e7@chromium.org>
Reviewed-by: Furquan Shaikh <6be5c96c464778f89679b1062a2e0a6af93d2aa5@chromium.org>
(cherry picked from commit a7a9223c640cfbd86fb0cac4d60d5ee9a233cc8c)
Reviewed-on: https://chromium-review.googlesource.com/1332809
Commit-Ready: Aseda Aboagye <12c9b286316a940fd31c24070da5ab64cdd4d0e7@chromium.org>
Reviewed-by: Aseda Aboagye <12c9b286316a940fd31c24070da5ab64cdd4d0e7@chromium.org>

coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec