sensors: brcm: fix not to send commands to not initialized mcu
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, 14 Dec 2016 04:52:42 +0000 (13:52 +0900)
commitda51aa792e8fff47c801283595ee90852fc901f0
tree73f6fe428ca04bb264aeace353979537e0bd76c8
parenta44ff16320a16f617748249d1edb0f7eba3e8216
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