Michael Trimarchi
79f34d19d7
Input: bma150 - fix checking pm_runtime_get_sync() return value
...
When PM_RUNTIME is not defined, pm_runtime_get_sync() returns 1, see
include/linux/pm_runtime.c::__pm_runtime_resume(), and the check of the
return value was overlooking this, in this case bma150_open() would
return 1 which is not expected by upper layers.
Maybe the check for != -ENOSYS (Function not implemented) was meant to
cover this, but pm_runtime_get_sync() does not return this value.
For now fix the issue locally by checking explicitly for negative return
values.
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Antonio Ospite <ao2@amarulasolutions.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2013-02-15 18:52:39 -08:00
..
2012-11-03 09:52:54 +08:00
2012-10-05 22:32:05 -03:00
2012-10-06 03:04:40 +09:00
2012-10-26 14:23:35 -07:00
2012-10-15 14:45:51 -04:00
2012-10-30 08:37:31 +01:00
2012-10-02 13:38:27 -07:00
2012-10-01 19:39:48 -07:00
2012-10-25 12:05:50 -07:00
2012-10-02 17:26:42 -07:00
2012-10-02 18:32:35 -07:00
2012-10-02 13:38:27 -07:00
2012-10-31 21:02:57 +01:00
2012-10-08 22:52:54 -04:00
2012-10-07 20:55:16 +09:00
2012-10-26 14:59:01 -07:00
2012-10-24 16:13:27 +02:00
2012-10-23 16:32:18 +09:00
2012-10-09 18:26:28 +02:00
2012-10-19 14:07:47 -07:00
2012-10-30 15:56:22 -07:00
2012-11-02 10:31:37 +10:00
2012-10-31 15:39:28 -07:00
2012-10-24 15:46:27 -07:00
2012-11-01 17:31:20 -07:00
2012-11-03 15:14:54 -07:00
2012-10-06 03:04:41 +09:00
2012-09-26 22:28:21 -04:00
2012-10-19 19:44:06 +01:00
2012-10-23 09:03:49 -07:00
2013-02-15 18:52:39 -08:00
2012-10-24 16:58:53 +02:00
2012-09-24 10:07:40 -07:00
2012-10-26 02:20:36 -04:00
2012-10-10 20:14:07 +09:00
2012-10-07 21:04:56 +09:00
2012-10-06 03:16:12 +09:00
2012-10-31 11:42:30 +11:00
2012-10-17 16:45:56 -03:00
2012-09-26 14:04:09 -07:00
2012-11-24 00:21:49 -08:00
2012-10-10 20:15:24 +09:00
2012-10-11 17:21:40 -04:00
2012-10-09 15:08:42 +01:00
2012-11-02 21:58:09 -04:00
2012-09-27 10:47:48 +02:00
2012-10-17 15:53:03 -05:00
2012-10-09 16:22:18 +09:00
2012-10-09 16:11:46 +09:00
2012-10-06 03:16:12 +09:00
2012-10-19 15:40:18 -07:00
2012-10-23 11:52:25 +02:00
2012-10-09 01:47:35 -04:00
2012-10-13 11:27:59 +09:00
2012-10-06 03:04:56 +09:00
2012-10-10 20:15:24 +09:00
2012-10-11 08:50:15 +09:00
2012-10-05 12:01:30 +09:00
2012-10-07 21:04:56 +09:00
2012-10-07 21:04:56 +09:00
2012-10-25 14:37:53 -07:00
2012-10-18 17:50:08 +02:00
2012-10-26 12:29:46 -07:00
2012-10-15 14:08:48 +09:00
2012-10-28 11:13:54 -07:00
2012-10-26 10:25:31 -07:00
2012-11-01 00:38:45 -07:00
2012-11-03 09:52:55 +08:00
2013-01-17 00:27:52 -08:00
2012-10-09 16:22:19 +09:00
2012-10-25 13:13:48 -07:00
2012-10-10 09:10:32 -06:00
2012-10-24 23:19:30 -04:00
2012-11-02 13:26:11 -07:00
2012-09-28 15:05:16 +09:30
2012-10-01 12:09:59 -07:00
2012-10-07 21:06:10 +09:00
2012-11-02 13:26:11 -07:00
2012-10-01 18:46:13 -07:00
2012-10-16 18:07:12 -07:00