]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sun4i-ss - simplify enable/disable of the device
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Tue, 24 Sep 2019 08:08:31 +0000 (10:08 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 4 Oct 2019 15:06:20 +0000 (01:06 +1000)
commitc4899b645f928f000667b44b68467bc07773c7e8
tree9d572dc7abd66e5faabb1a3cb41fcb798e52b714
parent95fa51c7841cfb050a548aa6025228a413a51128
crypto: sun4i-ss - simplify enable/disable of the device

This patch regroups resource enabling/disabling in dedicated function.
This simplify error handling and will permit to support power
management.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sunxi-ss/sun4i-ss-core.c