Skip to content

Commit 3a07703

Browse files
Dan Carpentervinodkoul
authored andcommitted
phy: exynos5-usbdrd: fix error code in probe()
Return negative -ENOMEM instead of positive ENOMEM. Fixes: 497ddaf ("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>
1 parent ce52c25 commit 3a07703

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/phy/samsung/phy-exynos5-usbdrd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,7 @@ static int exynos5_usbdrd_phy_probe(struct platform_device *pdev)
17451745
sizeof(*phy_drd->regulators),
17461746
GFP_KERNEL);
17471747
if (!phy_drd->regulators)
1748-
return ENOMEM;
1748+
return -ENOMEM;
17491749
regulator_bulk_set_supply_names(phy_drd->regulators,
17501750
drv_data->regulator_names,
17511751
drv_data->n_regulators);

0 commit comments

Comments
 (0)