sensors: brcm: fix not to send commands to not initialized mcu 75/90775/3
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Tue, 4 Oct 2016 07:49:16 +0000 (16:49 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 5 Oct 2016 07:17:03 +0000 (00:17 -0700)
commit7006556bf269cfcf24e6f685f3f7ef7198f0cba5
tree97a95fc3151ce6d5d0fe99c9e54b50b567f3acb7
parent6c07ccc5cbdc66d647dc78da29b8b410b9e7adfd
sensors: brcm: fix not to send commands to not initialized mcu

The suspend and resume errors happen when sensorhub mcu was not
initialized. So it needs to check the sensorhub mcu state.

Change-Id: I7d738d2316bbe20922df39c6ddfdf3573bc8984d
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
drivers/sensors/brcm/ssp_dev.c