aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIrina Tirdea <[email protected]>2014-08-09 15:05:00 +0100
committerJonathan Cameron <[email protected]>2014-09-14 18:29:19 +0100
commitef1c6b23355b70356ca18c0d4c39b25dfbd7be02 (patch)
tree90c7354d7a8de60d357c117a00d39a173291bd6c /include
parentc68613777517e538ace751e4e738e238eb216f86 (diff)
iio: gyro: bmg160: only set power state if PM_RUNTIME is defined
When CONFIG_PM_RUNTIME is not defined and bmg160 tries to power off the device, bmg160_set_power_state will call pm_runtime_put_autosuspend, which is not implemented (wil return -ENOSYS). Only call bmg160_set_power_state when CONFIG_PM_RUNTIME is defined. Signed-off-by: Irina Tirdea <[email protected]> Acked-by: Hartmut Knaack <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions