[PATCH v2] usb: onboard-hub: Fix return type for regulator APIs
Marek Vasut
marex at denx.de
Sat Apr 12 22:52:44 CEST 2025
On 4/11/25 7:55 AM, Michal Simek wrote:
> From: Padmarao Begari <padmarao.begari at amd.com>
>
> Apart from ENOENT observing return value as ENOSYS when
> !DM_REGULATOR that's why cover both configurations.
> Changed code is not working as operation should be "&&"
> not "||" (ret != -ENOENT && ret != -ENOSYS).
>
> Also fix the remove function where the regulator_set_enable_if_allowed()
> function is returning an error.
>
> Signed-off-by: Padmarao Begari <padmarao.begari at amd.com>
> Signed-off-by: Michal Simek <michal.simek at amd.com>
Reviewed-by: Marek Vasut <marex at denx.de>
More information about the U-Boot
mailing list