linux-stable/drivers/iio/magnetometer
Daniel Baluta 8b14821a5c iio: magnetometer: mmc35240: Fix crash in pm suspend
We must set i2c client private data at probe in order to
correctly retrieve it in pm suspend/resume, preventing
the following crash:

[ 321.790582] PM: Syncing filesystems ... done.
[ 322.364440] PM: Preparing system for mem sleep
[ 322.400047] PM: Entering mem sleep
[ 322.462178] BUG: unable to handle kernel NULL pointer dereference at 0000036c
[ 322.469119] IP: [<80e0b3d2>] mmc35240_suspend+0x12/0x30
[ 322.474291] *pdpt = 000000002fd6f001 *pde = 0000000000000000
[ 322.479967] Oops: 0000 1 PREEMPT SMP
[ 322.496516] task: a86d0df0 ti: a8766000 task.ti: a8766000
[ 322.570744] Call Trace:
[ 322.573217] [<80c0d2d1>] pm_generic_suspend+0x21/0x30
[ 322.578284] [<80d042ab>] i2c_device_pm_suspend+0x1b/0x30

Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-07-19 11:53:35 +01:00
..
ak8975.c iio: magnetometer: ak8975: Add AK8963 2015-01-27 18:49:59 +00:00
bmc150_magn.c iio:magnetometer:bmc150_magn: output intended variable 2015-07-19 11:53:35 +01:00
hid-sensor-magn-3d.c iio: hid-sensor-magn-3d: Constify platform_device_id 2015-05-10 20:31:47 +01:00
Kconfig iio:magnetometer:bmc150_magn: add regmap dependency 2015-07-19 11:53:31 +01:00
mag3110.c iio: magnetometer: mag3110: Place driver on standby on error 2015-04-01 17:24:09 +02:00
Makefile iio: magnetometer: Add support for MEMSIC MMC35240 sensor 2015-05-10 20:31:45 +01:00
mmc35240.c iio: magnetometer: mmc35240: Fix crash in pm suspend 2015-07-19 11:53:35 +01:00
st_magn.h iio: magnetometer: support for lsm303dlh 2015-05-07 10:42:34 +01:00
st_magn_buffer.c iio:st_magn: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:13:50 +01:00
st_magn_core.c Merge 4.1-rc4 into staging-next 2015-05-18 13:52:44 -07:00
st_magn_i2c.c iio: magnetometer: support for lsm303dlh 2015-05-07 10:42:34 +01:00
st_magn_spi.c iio:common: Set the device pointer into ST common sensors library 2014-10-04 11:26:21 +01:00