reset: Return 0 if ops unimplemented and remove empty functions
authorMarek Vasut <marex@denx.de>
Tue, 26 Apr 2022 21:43:30 +0000 (23:43 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 5 May 2022 23:37:11 +0000 (19:37 -0400)
commit0be4b0b6516c82f53bb3e8546ea8f213cf2fe2ac
treee0b7443472955c81c7f493c4c890c0039ce85262
parentd6577668196a130787291682ff9202721396ec1b
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>
25 files changed:
drivers/reset/reset-ast2500.c
drivers/reset/reset-ast2600.c
drivers/reset/reset-bcm6345.c
drivers/reset/reset-dra7.c
drivers/reset/reset-hisilicon.c
drivers/reset/reset-hsdk.c
drivers/reset/reset-imx7.c
drivers/reset/reset-ipq4019.c
drivers/reset/reset-mediatek.c
drivers/reset/reset-meson.c
drivers/reset/reset-mtmips.c
drivers/reset/reset-raspberrypi.c
drivers/reset/reset-rockchip.c
drivers/reset/reset-scmi.c
drivers/reset/reset-sifive.c
drivers/reset/reset-socfpga.c
drivers/reset/reset-sunxi.c
drivers/reset/reset-ti-sci.c
drivers/reset/reset-uclass.c
drivers/reset/reset-uniphier.c
drivers/reset/reset-zynqmp.c
drivers/reset/sti-reset.c
drivers/reset/stm32-reset.c
drivers/reset/tegra-car-reset.c
drivers/reset/tegra186-reset.c