Re: [PATCH] crypto: sun4i-ss - simplify optional reset handling

2021-03-12 Thread Herbert Xu
On Fri, Mar 05, 2021 at 10:12:36AM +0100, Philipp Zabel wrote: > 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

[PATCH] crypto: sun4i-ss - simplify optional reset handling

2021-03-05 Thread Philipp Zabel
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