From: Tom Rini Date: Mon, 14 Aug 2023 13:14:51 +0000 (-0400) Subject: Merge branch '2023-08-14-keep-fixed-gpio-regulator-count-in-balance' into next X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=831a80c2af322a80890cd9ef81c8ab7697788712;p=u-boot.git Merge branch '2023-08-14-keep-fixed-gpio-regulator-count-in-balance' into next To quote the author: The commit 4fcba5d556b4 ("regulator: implement basic reference counter") have made it more important to keep fixed/gpio regulators enable/disable state in balance. This series fixes an inbalance in the mmc_dw driver and changes to use the more relaxed regulator_set_enable_if_allowed function for a few other drivers. The regulator_set_enable_if_allowed function is more relaxed and will return ENOSYS if the provided regulator is NULL or when DM_REGULATOR was disabled. Using the following call convention should be safe: ret = regulator_set_enable_if_allowed(, ); if (ret && ret != -ENOSYS) return ret; --- 831a80c2af322a80890cd9ef81c8ab7697788712