aboutsummaryrefslogtreecommitdiff
path: root/drivers/reset/sti-reset.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2022-04-26 23:43:30 +0200
committerTom Rini <trini@konsulko.com>2022-05-05 19:37:11 -0400
commit0be4b0b6516c82f53bb3e8546ea8f213cf2fe2ac (patch)
treee0b7443472955c81c7f493c4c890c0039ce85262 /drivers/reset/sti-reset.c
parentd6577668196a130787291682ff9202721396ec1b (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/sti-reset.c')
-rw-r--r--drivers/reset/sti-reset.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/reset/sti-reset.c b/drivers/reset/sti-reset.c
index 9287f28952..ea449bbaaf 100644
--- a/drivers/reset/sti-reset.c
+++ b/drivers/reset/sti-reset.c
@@ -280,16 +280,6 @@ static int sti_reset_program_hw(struct reset_ctl *reset_ctl, int assert)
return 0;
}
-static int sti_reset_request(struct reset_ctl *reset_ctl)
-{
- return 0;
-}
-
-static int sti_reset_free(struct reset_ctl *reset_ctl)
-{
- return 0;
-}
-
static int sti_reset_assert(struct reset_ctl *reset_ctl)
{
return sti_reset_program_hw(reset_ctl, true);
@@ -301,8 +291,6 @@ static int sti_reset_deassert(struct reset_ctl *reset_ctl)
}
struct reset_ops sti_reset_ops = {
- .request = sti_reset_request,
- .rfree = sti_reset_free,
.rst_assert = sti_reset_assert,
.rst_deassert = sti_reset_deassert,
};