crypto: sun4i-ss - simplify optional reset handling
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 5 Mar 2021 09:12:36 +0000 (10:12 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Mar 2021 13:04:07 +0000 (00:04 +1100)
commitaa31e559f7f9267cc65ac7029bdf19b5b3635eaf
tree6bb7261c82bd05695c18b88e2902ddd5ea65c9fb
parente5f9f41d5e62004c913bfd4ddf06abe032f5ce1c
crypto: sun4i-ss - simplify optional reset handling

As of commit bb475230b8e5 ("reset: make optional functions really
optional"), the reset framework API calls use NULL pointers to describe
optional, non-present reset controls.

This allows to unconditionally return errors from
devm_reset_control_get_optional_exclusive.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c