]> git.dujemihanovic.xyz Git - u-boot.git/commit
power-domain: Return 0 if ops unimplemented and remove empty functions
authorMarek Vasut <marex@denx.de>
Tue, 12 Apr 2022 22:42:48 +0000 (00:42 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 21 Apr 2022 10:44:23 +0000 (12:44 +0200)
commit20874a60722b2b282e29b0819198c1649eff65f2
treeca386c1ae4979761a95edfa26d8fa700593f7c79
parent85d0580e684c74dcb0a90aa0c010006cda40af44
power-domain: 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 power domain driver. Drop all those empty functions.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Simon Glass <sjg@chromium.org>
12 files changed:
drivers/power/domain/apple-pmgr.c
drivers/power/domain/bcm6328-power-domain.c
drivers/power/domain/imx8-power-domain-legacy.c
drivers/power/domain/imx8-power-domain.c
drivers/power/domain/imx8m-power-domain.c
drivers/power/domain/meson-ee-pwrc.c
drivers/power/domain/meson-gx-pwrc-vpu.c
drivers/power/domain/mtk-power-domain.c
drivers/power/domain/power-domain-uclass.c
drivers/power/domain/tegra186-power-domain.c
drivers/power/domain/ti-power-domain.c
drivers/power/domain/ti-sci-power-domain.c