Re: [PATCH v2] iio: gyro: bmg160: only set power state if PM_RUNTIME is defined

2014-09-14 Thread Jonathan Cameron
On 09/09/14 23:14, Hartmut Knaack wrote: > Irina Tirdea schrieb, Am 08.09.2014 16:05: >> 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

Re: [PATCH v2] iio: gyro: bmg160: only set power state if PM_RUNTIME is defined

2014-09-09 Thread Hartmut Knaack
Irina Tirdea schrieb, Am 08.09.2014 16:05: > 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 i

[PATCH v2] iio: gyro: bmg160: only set power state if PM_RUNTIME is defined

2014-09-08 Thread Irina Tirdea
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 --- Changes