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 <[email protected]> Reviewed-by: Peter Griffin <[email protected]> Reviewed-by: André Draszik <[email protected]> Reviewed-by: Sam Protsenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent ce52c25 commit 3a07703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)