Dave Gerlach ad8529fde9 hwrng: omap - Only fail if pm_runtime_get_sync returns < 0
Currently omap-rng checks the return value of pm_runtime_get_sync and
reports failure if anything is returned, however it should be checking
if ret < 0 as pm_runtime_get_sync return 0 on success but also can return
1 if the device was already active which is not a failure case. Only
values < 0 are actual failures.

Fixes: 61dc0a446e5d ("hwrng: omap - Fix assumption that runtime_get_sync will always succeed")
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2016-09-22 18:32:53 +08:00
..
2013-05-05 00:11:29 -04:00
2016-07-14 16:21:53 +09:00
2013-02-22 23:31:31 -05:00
2016-02-17 09:39:56 +01:00
2016-08-05 09:48:22 -04:00
2013-12-18 16:39:54 -08:00
2016-08-05 09:48:22 -04:00
2011-03-31 11:26:23 -03:00
2016-07-26 16:19:19 -07:00
2013-02-22 23:31:31 -05:00
2016-01-22 18:04:28 -05:00
2011-01-10 08:51:44 -08:00
2015-03-25 20:28:11 -04:00
2013-10-16 12:36:10 -07:00