| commit | 7a69d3b9df5873e32b1a10c637e3aefdba5846c2 | [log] [tgz] |
|---|---|---|
| author | Wentao Xu <wentaox@codeaurora.org> | Wed Dec 12 11:28:21 2012 -0500 |
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | Tue Jan 15 13:33:19 2013 -0800 |
| tree | 8586aebec1485c4eeecb4e5ea9ecc89215245f74 | |
| parent | 7099ec200b313f89dd596b1bb003b8e548a580d4 [diff] |
input: sensor: add check if regulator is valid before releasing it Sensor regulator could be still invalid at the time of a system suspend, this change is to avoid freeing NULL regulators under such occasion. Change-Id: Ia520b2516b43feaa3fbbbe30628cc47ee7fad96a Signed-off-by: Wentao Xu <wentaox@codeaurora.org>