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

Configure Feed

Select the types of activity you want to include in your feed.

phy: phy-snps-eusb2: fix optional phy lookup parameter

The devm_of_phy_optional_get() takes an optional name argument as its
third parameter and not an index like the recently replaced
devm_of_phy_get_by_index().

Replace 0 with an explicit NULL for consistency and readability.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20250523084839.11015-6-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Johan Hovold and committed by
Vinod Koul
f21b9bea b7996f8e

+1 -1
+1 -1
drivers/phy/phy-snps-eusb2.c
··· 581 581 return dev_err_probe(dev, ret, 582 582 "failed to get regulator supplies\n"); 583 583 584 - phy->repeater = devm_of_phy_optional_get(dev, np, 0); 584 + phy->repeater = devm_of_phy_optional_get(dev, np, NULL); 585 585 if (IS_ERR(phy->repeater)) 586 586 return dev_err_probe(dev, PTR_ERR(phy->repeater), 587 587 "failed to get repeater\n");