linux/drivers/iio/gyro
Irina Tirdea ef1c6b2335 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 <irina.tirdea@intel.com>
Acked-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2014-09-14 18:29:19 +01:00
..
adis16080.c iio:adis16080: Use spi_sync_transfer() 2013-10-05 11:58:54 +01:00
adis16130.c iio: gyro: adis16130: Use devm_iio_device_register 2013-11-24 21:07:17 +00:00
adis16136.c iio: gyro: adis16136: Use devm_iio_device_alloc 2013-08-17 15:50:54 +01:00
adis16260.c iio: adis: Switch sampling frequency attr to core support. 2014-07-07 09:44:17 +01:00
adxrs450.c iio: gyro: adxrs450: Use devm_iio_device_register 2013-11-24 21:07:18 +00:00
bmg160.c iio: gyro: bmg160: only set power state if PM_RUNTIME is defined 2014-09-14 18:29:19 +01:00
hid-sensor-gyro-3d.c iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
itg3200_buffer.c iio:itg3200: Use iio_push_to_buffers_with_timestamp() 2013-09-21 19:23:56 +01:00
itg3200_core.c iio: gyro: itg3200 switch sampling frequency attr to core support. 2014-07-07 09:41:32 +01:00
Kconfig iio:gyro:bmg160 Gyro Sensor driver 2014-08-26 18:36:54 +01:00
Makefile iio:gyro:bmg160 Gyro Sensor driver 2014-08-26 18:36:54 +01:00
st_gyro_buffer.c iio:st_gyro: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:12:46 +01:00
st_gyro_core.c iio:st sensors: remove custom sampling frequence attribute in favour of core support. 2014-07-07 09:39:57 +01:00
st_gyro_i2c.c iio: st_sensors: add devicetree probing support 2014-07-11 21:09:49 +01:00
st_gyro_spi.c iio:gyro: bug on L3GD20H gyroscope support 2014-02-18 10:24:49 +00:00
st_gyro.h iio:gyro: bug on L3GD20H gyroscope support 2014-02-18 10:24:49 +00:00