commit | 76f08e0614caab780a397246a51a03994f0abbf0 | [log] [tgz] |
---|---|---|
author | Vikram Mulukutla <markivx@codeaurora.org> | Tue May 01 19:15:19 2012 -0700 |
committer | Vikram Mulukutla <markivx@codeaurora.org> | Tue May 01 19:21:51 2012 -0700 |
tree | 85115e7fd0db325503025cd68930965f39819919 | |
parent | 77664f29f52e153914812a1a82717e2e7f84bb98 [diff] |
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: Vikram Mulukutla <markivx@codeaurora.org>