Commit 76f08e06 authored by Vikram Mulukutla's avatar Vikram Mulukutla
Browse files

msm: msm_watchdog: Don't pet the watchdog if it isn't enabled



If the kernel commandline has msm_watchdog.enable set to
zero and another driver calls pet_watchdog, the kernel will
panic since msm_tmr0_base is NULL (early return in probe).
Fix the pet_watchdog function to be a no-op if enable is
set to zero.

Change-Id: I4e1b72f9d98d5b4ca9ea312abde39dac7cb94b7d
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent 77664f29
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment