crypto: mediatek - move mtk_aes_find_dev() to the right place
authorRyder Lee <ryder.lee@mediatek.com>
Wed, 28 Aug 2019 06:37:12 +0000 (14:37 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 5 Sep 2019 04:36:54 +0000 (14:36 +1000)
commit4797f6cab5096aa4e97cee2d0044dcf8e6bcd7b8
tree432ad34675bbb4ff75e6119a8d711a155153ed63
parent1bbbbcfdc0f0fa7a98ba0d551fd03d2c45d5a318
crypto: mediatek - move mtk_aes_find_dev() to the right place

Move mtk_aes_find_dev() to right functions as nobody uses the
'cryp' under current flows.

We can also avoid duplicate checks here and there in this way.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Vic Wu <vic.wu@mediatek.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mediatek/mtk-aes.c