diff options
author | Marek Vasut <marex@denx.de> | 2022-04-13 00:42:48 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2022-04-21 12:44:23 +0200 |
commit | 20874a60722b2b282e29b0819198c1649eff65f2 (patch) | |
tree | ca386c1ae4979761a95edfa26d8fa700593f7c79 /drivers/power/domain/imx8-power-domain-legacy.c | |
parent | 85d0580e684c74dcb0a90aa0c010006cda40af44 (diff) | |
download | u-boot-20874a60722b2b282e29b0819198c1649eff65f2.zip u-boot-20874a60722b2b282e29b0819198c1649eff65f2.tar.gz u-boot-20874a60722b2b282e29b0819198c1649eff65f2.tar.bz2 |
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>
Diffstat (limited to 'drivers/power/domain/imx8-power-domain-legacy.c')
-rw-r--r-- | drivers/power/domain/imx8-power-domain-legacy.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/power/domain/imx8-power-domain-legacy.c b/drivers/power/domain/imx8-power-domain-legacy.c index e2fae2d..bf45891 100644 --- a/drivers/power/domain/imx8-power-domain-legacy.c +++ b/drivers/power/domain/imx8-power-domain-legacy.c @@ -84,20 +84,6 @@ int imx8_power_domain_lookup_name(const char *name, return 0; } -static int imx8_power_domain_request(struct power_domain *power_domain) -{ - debug("%s(power_domain=%p)\n", __func__, power_domain); - - return 0; -} - -static int imx8_power_domain_free(struct power_domain *power_domain) -{ - debug("%s(power_domain=%p)\n", __func__, power_domain); - - return 0; -} - static int imx8_power_domain_on(struct power_domain *power_domain) { struct udevice *dev = power_domain->dev; @@ -364,8 +350,6 @@ static const struct udevice_id imx8_power_domain_ids[] = { }; struct power_domain_ops imx8_power_domain_ops = { - .request = imx8_power_domain_request, - .rfree = imx8_power_domain_free, .on = imx8_power_domain_on, .off = imx8_power_domain_off, .of_xlate = imx8_power_domain_of_xlate, |