aboutsummaryrefslogtreecommitdiff
path: root/drivers/reset/reset-hisilicon.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/reset-hisilicon.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/reset-hisilicon.c')
-rw-r--r--drivers/reset/reset-hisilicon.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/reset/reset-hisilicon.c b/drivers/reset/reset-hisilicon.c
index 3f9da8cc8d..8152cec227 100644
--- a/drivers/reset/reset-hisilicon.c
+++ b/drivers/reset/reset-hisilicon.c
@@ -46,16 +46,6 @@ static int hisi_reset_assert(struct reset_ctl *rst)
return 0;
}
-static int hisi_reset_free(struct reset_ctl *rst)
-{
- return 0;
-}
-
-static int hisi_reset_request(struct reset_ctl *rst)
-{
- return 0;
-}
-
static int hisi_reset_of_xlate(struct reset_ctl *rst,
struct ofnode_phandle_args *args)
{
@@ -74,8 +64,6 @@ static int hisi_reset_of_xlate(struct reset_ctl *rst,
static const struct reset_ops hisi_reset_reset_ops = {
.of_xlate = hisi_reset_of_xlate,
- .request = hisi_reset_request,
- .rfree = hisi_reset_free,
.rst_assert = hisi_reset_assert,
.rst_deassert = hisi_reset_deassert,
};