Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Dan Carpenter and committed by
Vinod Koul
3a07703a ce52c253

+1 -1
+1 -1
drivers/phy/samsung/phy-exynos5-usbdrd.c
··· 1745 1745 sizeof(*phy_drd->regulators), 1746 1746 GFP_KERNEL); 1747 1747 if (!phy_drd->regulators) 1748 - return ENOMEM; 1748 + return -ENOMEM; 1749 1749 regulator_bulk_set_supply_names(phy_drd->regulators, 1750 1750 drv_data->regulator_names, 1751 1751 drv_data->n_regulators);