Srinivas Pandruvada
2d94e5224e
HID: hid-sensor-hub: Fix debug lock warning
...
When CONFIG_DEBUG_LOCK_ALLOC is defined, mutex magic is compared and
warned for (l->magic != l), here l is the address of mutex pointer.
In hid-sensor-hub as part of hsdev creation, a per hsdev mutex is
initialized during MFD cell creation. This hsdev, which contains, mutex
is part of platform data for the a cell. But platform_data is copied
in platform_device_add_data() in platform.c. This copy will copy the
whole hsdev structure including mutex. But once copied the magic
will no longer match. So when client driver call
sensor_hub_input_attr_get_raw_value, this will trigger mutex warning.
So to avoid this allocate mutex dynamically. This will be same even
after copy.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com >
Signed-off-by: Jiri Kosina <jkosina@suse.cz >
2015-05-12 14:13:20 +02:00
..
2015-02-19 13:31:40 +03:00
2015-03-29 16:17:10 +01:00
2015-04-11 11:17:28 +02:00
2015-04-13 17:07:21 -07:00
2015-03-02 15:27:19 -05:00
2015-04-09 09:08:15 +02:00
2015-02-18 08:01:44 -08:00
2015-03-05 10:08:14 +01:00
2015-03-27 12:19:37 +01:00
2015-04-06 17:46:27 +02:00
2015-04-10 19:16:03 +01:00
2015-02-16 17:56:05 -08:00
2015-04-11 23:09:18 +01:00
2015-03-31 14:15:08 -04:00
2015-04-07 11:17:34 +02:00
2015-03-18 17:27:03 +01:00
2015-03-27 11:59:22 -04:00
2015-02-17 15:27:47 -08:00
2015-02-17 16:12:34 -08:00
2015-02-17 21:33:27 +01:00
2015-02-13 21:21:39 -08:00
2015-04-08 09:41:41 -07:00
2015-02-18 09:40:07 -08:00
2015-03-11 15:56:59 -07:00
2015-04-03 08:44:37 +02:00
2015-03-13 08:07:08 +01:00
2015-02-13 21:21:42 -08:00
2015-02-13 21:21:42 -08:00
2015-02-13 21:21:40 -08:00
2015-03-27 09:42:01 +01:00
2015-04-03 13:15:50 +02:00
2015-02-13 21:21:39 -08:00
2015-02-22 11:38:38 -05:00
2015-02-17 12:21:51 -05:00
2015-02-27 14:53:16 -05:00
2015-03-25 14:53:58 +01:00
2015-04-07 16:45:33 -07:00
2015-04-01 12:46:22 +01:00
2015-04-06 17:50:59 -04:00
2015-02-18 15:08:33 +01:00
2015-05-12 14:13:20 +02:00
2015-02-23 15:11:52 +01:00
2015-04-14 09:25:26 -07:00
2015-02-21 12:41:50 -08:00
2015-02-13 21:21:41 -08:00
2015-03-05 09:23:12 +01:00
2015-04-08 23:28:28 +02:00
2015-03-23 10:55:21 +01:00
2015-04-11 11:17:28 +02:00
2015-03-04 21:42:19 +01:00
2015-02-19 01:08:42 +01:00
2015-04-09 09:40:24 +02:00
2015-03-12 18:46:08 -07:00
2015-02-19 12:39:02 -06:00
2015-02-13 21:21:36 -08:00
2015-02-17 14:34:51 -08:00
2015-04-08 10:47:02 +02:00
2015-03-31 09:45:50 -06:00
2015-04-13 16:42:16 -07:00
2015-02-16 17:56:03 -08:00
2015-04-07 16:45:33 -07:00
2015-02-17 17:41:19 -08:00
2015-03-18 10:46:39 -07:00
2015-03-12 18:46:08 -07:00
2015-02-14 11:32:59 -08:00
2015-04-06 16:12:49 -04:00
2015-03-03 13:02:29 -05:00
2015-02-18 13:11:09 -08:00
2015-02-13 21:21:39 -08:00
2015-02-19 16:15:37 -07:00
2015-03-03 14:42:56 -06:00
2015-03-03 14:42:55 -06:00
2015-03-03 14:42:57 -06:00
2015-03-13 09:45:24 -05:00
2015-03-10 15:33:23 -05:00
2015-04-08 16:25:25 -05:00
2015-04-09 14:20:11 -05:00
2015-04-10 08:27:18 -05:00
2015-02-16 14:58:12 -08:00
2015-03-13 23:15:52 +01:00
2015-02-17 14:34:52 -08:00
2015-02-27 16:06:02 -05:00
2015-02-16 17:56:03 -08:00
2015-04-03 08:18:24 +02:00
2015-04-13 16:47:11 -07:00
2015-02-13 21:21:39 -08:00
2015-02-13 21:21:39 -08:00
2015-02-24 08:44:16 +01:00
2015-03-07 03:39:55 +01:00
2015-03-11 23:51:18 -04:00
2015-02-13 21:21:41 -08:00
2015-02-13 21:21:41 -08:00
2015-03-17 09:25:28 +01:00
2015-02-13 21:21:35 -08:00
2015-03-25 13:28:58 +01:00
2015-02-24 14:40:42 -04:00
2015-04-03 08:44:37 +02:00
2015-03-27 09:45:07 +01:00
2015-04-03 08:18:34 +02:00
2015-02-17 22:21:11 -05:00
2015-04-07 12:58:35 -05:00
2015-03-17 09:25:28 +01:00
2015-03-12 18:46:08 -07:00
2015-03-06 17:03:22 -08:00
2015-03-09 09:22:28 -04:00
2015-03-17 12:23:32 -04:00