Commit 7a69d3b9 authored by Wentao Xu's avatar Wentao Xu Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarWentao Xu <wentaox@codeaurora.org>
parent 7099ec20
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment