Commit 3a07703a authored by Dan Carpenter's avatar Dan Carpenter Committed by Vinod Koul

phy: exynos5-usbdrd: fix error code in probe()

Return negative -ENOMEM instead of positive ENOMEM.

Fixes: 497ddafe ("phy: exynos5-usbdrd: convert Vbus supplies to regulator_bulk")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarPeter Griffin <peter.griffin@linaro.org>
Reviewed-by: default avatarAndré Draszik <andre.draszik@linaro.org>
Reviewed-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
Link: https://lore.kernel.org/r/a956a3e2-c6ce-4f07-ad80-ec8a96e00d16@stanley.mountainSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent ce52c253
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment