reset: Return 0 if ops unimplemented and remove empty functions
In case the ops is not implemented, return 0 in the core right away. This is better than having multiple copies of functions which just return 0 in each reset driver. Drop all those empty functions. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -65,14 +65,8 @@ static int scmi_reset_request(struct reset_ctl *rst)
|
||||
return scmi_to_linux_errno(out.status);
|
||||
}
|
||||
|
||||
static int scmi_reset_rfree(struct reset_ctl *rst)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct reset_ops scmi_reset_domain_ops = {
|
||||
.request = scmi_reset_request,
|
||||
.rfree = scmi_reset_rfree,
|
||||
.rst_assert = scmi_reset_assert,
|
||||
.rst_deassert = scmi_reset_deassert,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user