crypto: aspeed - fix type warnings
authorNeal Liu <neal_liu@aspeedtech.com>
Fri, 3 Feb 2023 03:35:12 +0000 (11:35 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 10 Feb 2023 09:20:19 +0000 (17:20 +0800)
commiteaf05e829f389d172ca7e553f22d49d104b6861c
tree5c247a26ff4e9963fb4d2094d500db6b5a505ada
parentacd4045db64cdebc6ce4be35abe01000311664aa
crypto: aspeed - fix type warnings

This patch fixes following warnings:

1. sparse: incorrect type in assignment (different base types)
Fix: change to __le32 type.
2. sparse: cast removes address space '__iomem' of expression
Fix: use readb to avoid dereferencing the memory.

Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/aspeed/aspeed-acry.c