From: Dan Carpenter Date: Mon, 8 Jul 2024 17:04:33 +0000 (-0500) Subject: phy: exynos5-usbdrd: fix error code in probe() X-Git-Tag: v6.11-rc6~17^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3a07703a523045cbdb0a5fa5e0902a9145ee43e9;p=thirdparty%2Fkernel%2Flinux.git phy: exynos5-usbdrd: fix error code in probe() Return negative -ENOMEM instead of positive ENOMEM. Fixes: 497ddafe915e ("phy: exynos5-usbdrd: convert Vbus supplies to regulator_bulk") Signed-off-by: Dan Carpenter Reviewed-by: Peter Griffin Reviewed-by: André Draszik Reviewed-by: Sam Protsenko Link: https://lore.kernel.org/r/a956a3e2-c6ce-4f07-ad80-ec8a96e00d16@stanley.mountain Signed-off-by: Vinod Koul --- diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exynos5-usbdrd.c index df52b78a120b4..9cbf901429503 100644 --- a/drivers/phy/samsung/phy-exynos5-usbdrd.c +++ b/drivers/phy/samsung/phy-exynos5-usbdrd.c @@ -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);