net: lan966x: Convert to devm_of_phy_optional_get()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 24 Jan 2023 18:37:24 +0000 (19:37 +0100)
committerVinod Koul <vkoul@kernel.org>
Fri, 3 Feb 2023 05:22:49 +0000 (10:52 +0530)
commit9da87c6ef770f5a407952ea2baa0680e7df5ebd9
tree6b58c819d7bc81804deff1ecdda91fd972f65e52
parenta6ebcae7de16f3af3c328e8fba7c77aac8a910e9
net: lan966x: Convert to devm_of_phy_optional_get()

Use the new devm_of_phy_optional_get() helper instead of open-coding the
same operation.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com>
Link: https://lore.kernel.org/r/993b0f4ac5b84b2b72223011614d2e821f9e7302.1674584626.git.geert+renesas@glider.be
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/net/ethernet/microchip/lan966x/lan966x_main.c