crypto: sa2ul - Use of_device_get_match_data() helper
authorSuman Anna <s-anna@ti.com>
Fri, 14 May 2021 16:12:44 +0000 (11:12 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 23 May 2021 00:52:40 +0000 (08:52 +0800)
commitd699c5d0bd811e48de72aeeb8e3872c63e957745
treef755863d9d25fb7c7968f5281db886e6210ec224
parent5c8552325e013cbdabc443cd1f1b4d03c4a2e64e
crypto: sa2ul - Use of_device_get_match_data() helper

Simplify the probe function by using the of_device_get_match_data()
helper instead of open coding. The logic is also moved up to fix the
missing pm_runtime cleanup in case of a match failure.

Fixes: 0bc42311cdff ("crypto: sa2ul - Add support for AM64")
Signed-off-by: Suman Anna <s-anna@ti.com>
Reviewed-by: Tero Kristo <kristo@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sa2ul.c