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-sunxi.c | |
parent | d6577668196a130787291682ff9202721396ec1b (diff) | |
download | u-boot-0be4b0b6516c82f53bb3e8546ea8f213cf2fe2ac.zip u-boot-0be4b0b6516c82f53bb3e8546ea8f213cf2fe2ac.tar.gz u-boot-0be4b0b6516c82f53bb3e8546ea8f213cf2fe2ac.tar.bz2 |
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-sunxi.c')
-rw-r--r-- | drivers/reset/reset-sunxi.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/reset/reset-sunxi.c b/drivers/reset/reset-sunxi.c index 8b95938..e2a9c2a 100644 --- a/drivers/reset/reset-sunxi.c +++ b/drivers/reset/reset-sunxi.c @@ -41,13 +41,6 @@ static int sunxi_reset_request(struct reset_ctl *reset_ctl) return 0; } -static int sunxi_reset_free(struct reset_ctl *reset_ctl) -{ - debug("%s: (RST#%ld)\n", __func__, reset_ctl->id); - - return 0; -} - static int sunxi_set_reset(struct reset_ctl *reset_ctl, bool on) { struct sunxi_reset_priv *priv = dev_get_priv(reset_ctl->dev); @@ -85,7 +78,6 @@ static int sunxi_reset_deassert(struct reset_ctl *reset_ctl) struct reset_ops sunxi_reset_ops = { .request = sunxi_reset_request, - .rfree = sunxi_reset_free, .rst_assert = sunxi_reset_assert, .rst_deassert = sunxi_reset_deassert, }; |