diff options
author | Marek Vasut <marex@denx.de> | 2022-04-26 23:43:30 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-05-05 19:37:11 -0400 |
commit | 0be4b0b6516c82f53bb3e8546ea8f213cf2fe2ac (patch) | |
tree | e0b7443472955c81c7f493c4c890c0039ce85262 /drivers/reset/reset-ti-sci.c | |
parent | d6577668196a130787291682ff9202721396ec1b (diff) |
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>
Diffstat (limited to 'drivers/reset/reset-ti-sci.c')
-rw-r--r-- | drivers/reset/reset-ti-sci.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/reset/reset-ti-sci.c b/drivers/reset/reset-ti-sci.c index d8510a4abb..f35332767b 100644 --- a/drivers/reset/reset-ti-sci.c +++ b/drivers/reset/reset-ti-sci.c @@ -63,18 +63,6 @@ static int ti_sci_reset_of_xlate(struct reset_ctl *rst, return 0; } -static int ti_sci_reset_request(struct reset_ctl *rst) -{ - debug("%s(rst=%p)\n", __func__, rst); - return 0; -} - -static int ti_sci_reset_free(struct reset_ctl *rst) -{ - debug("%s(rst=%p)\n", __func__, rst); - return 0; -} - /** * ti_sci_reset_set() - program a device's reset * @rst: Handle to a single reset signal @@ -193,8 +181,6 @@ static const struct udevice_id ti_sci_reset_of_match[] = { static struct reset_ops ti_sci_reset_ops = { .of_xlate = ti_sci_reset_of_xlate, - .request = ti_sci_reset_request, - .rfree = ti_sci_reset_free, .rst_assert = ti_sci_reset_assert, .rst_deassert = ti_sci_reset_deassert, .rst_status = ti_sci_reset_status, |