]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
phy: exynos5-usbdrd: fix error code in probe()
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 8 Jul 2024 17:04:33 +0000 (12:04 -0500)
committerVinod Koul <vkoul@kernel.org>
Sun, 4 Aug 2024 17:34:06 +0000 (23:04 +0530)
Return negative -ENOMEM instead of positive ENOMEM.

Fixes: 497ddafe915e ("phy: exynos5-usbdrd: convert Vbus supplies to regulator_bulk")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Peter Griffin <peter.griffin@linaro.org>
Reviewed-by: André Draszik <andre.draszik@linaro.org>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Link: https://lore.kernel.org/r/a956a3e2-c6ce-4f07-ad80-ec8a96e00d16@stanley.mountain
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/samsung/phy-exynos5-usbdrd.c

index df52b78a120b47d6d2517e4973534fb14a1de969..9cbf90142950364943a00d8a920eddbb860cf3d6 100644 (file)
@@ -1745,7 +1745,7 @@ static int exynos5_usbdrd_phy_probe(struct platform_device *pdev)
                                           sizeof(*phy_drd->regulators),
                                           GFP_KERNEL);
        if (!phy_drd->regulators)
-               return ENOMEM;
+               return -ENOMEM;
        regulator_bulk_set_supply_names(phy_drd->regulators,
                                        drv_data->regulator_names,
                                        drv_data->n_regulators);