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)
commit70dd444ad0a023d853b5d84e68226a792bb17a82
tree9d572dc7abd66e5faabb1a3cb41fcb798e52b714
parent6a97a99db848748d582d79447f7c9c330ce1688e
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