mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
phy: exynos5-usbdrd: fix error code in probe()
Return negative -ENOMEM instead of positive ENOMEM.
Fixes: 497ddafe91
("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>
This commit is contained in:
parent
ce52c25322
commit
3a07703a52
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user