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: amlogic: phy-meson-axg-mipi-dphy: Simplify error handling with dev_err_probe()

Use dev_err_probe() for phy resources to indicate the deferral
reason when waiting for the resource to come up.

Signed-off-by: Anand Moon <linux.amoon@gmail.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250410133332.294556-5-linux.amoon@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Anand Moon and committed by
Vinod Koul
a77e2e89 de39730f

+3 -7
+3 -7
drivers/phy/amlogic/phy-meson-axg-mipi-dphy.c
··· 377 377 return ret; 378 378 379 379 phy = devm_phy_create(dev, NULL, &phy_meson_axg_mipi_dphy_ops); 380 - if (IS_ERR(phy)) { 381 - ret = PTR_ERR(phy); 382 - if (ret != -EPROBE_DEFER) 383 - dev_err(dev, "failed to create PHY\n"); 384 - 385 - return ret; 386 - } 380 + if (IS_ERR(phy)) 381 + return dev_err_probe(dev, PTR_ERR(phy), 382 + "failed to create PHY\n"); 387 383 388 384 phy_set_drvdata(phy, priv); 389 385