crypto: omap-des - handle error of pm_runtime_get_sync
authorNishanth Menon <nm@ti.com>
Tue, 15 Apr 2014 16:58:31 +0000 (11:58 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 16 Apr 2014 12:40:19 +0000 (20:40 +0800)
commitf51f593b3eb194d01d8980316e6bb1f7d72f567a
tree1c4d700f3da329372c076e1707f2ec54e988b9eb
parent8ece117104068de3e0e50d1601bca15f58e912fd
crypto: omap-des - handle error of pm_runtime_get_sync

pm_runtime_get_sync may not always succeed depending on SoC involved.
So handle the error appropriately ensuring usage_count is accurate in
case of failure.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Reported-by: Joachim Eastwood <manabian@gmail.com>
Tested-by: Joachim Eastwood <manabian@gmail.com>
Acked-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-des.c