• J
    reset: Return -ENOTSUPP when not configured · 168d7c4e
    John Youn 提交于
    Prior to commit 6c96f05c ("reset: Make [of_]reset_control_get[_foo]
    functions wrappers"), the "optional" functions returned -ENOTSUPP when
    CONFIG_RESET_CONTROLLER was not set.
    
    Revert back to the old behavior by changing the new
    __devm_reset_control_get() and __of_reset_control_get() functions to
    return ERR_PTR(-ENOTSUPP) when compiled without CONFIG_RESET_CONTROLLER.
    
    Otherwise they will return -EINVAL causing users to think that an error
    occurred when CONFIG_RESET_CONTROLLER is not set.
    
    Fixes: 6c96f05c ("reset: Make [of_]reset_control_get[_foo] functions wrappers")
    Signed-off-by: NJohn Youn <johnyoun@synopsys.com>
    Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
    168d7c4e
reset.h 7.1 KB