iio: hid-sensor: Fix unbalanced pm_runtime_enable error
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Sat, 8 Apr 2017 00:16:34 +0000 (17:16 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sat, 8 Apr 2017 14:36:47 +0000 (15:36 +0100)
commitc94f5806cd0be4c7d4dabb89d1ae1088ed4332e7
treecd6b8616860cdc7978b461d66904d8970c8ceab5
parent25a85bed36f7da4e411f8744c2962e4e1003d7ea
iio: hid-sensor: Fix unbalanced pm_runtime_enable error

When a hid sensor module is removed and modprobed again we see
error for unbalanced pm_runtime. This issue is caused by not
deactivating runtime PM on removal. So on modprobe again when
activated again, this will print this error.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/common/hid-sensors/hid-sensor-trigger.c