net: phy: at803x: Use devm_regulator_get_enable_optional()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 17 Jun 2023 14:24:37 +0000 (16:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Jun 2023 16:33:48 +0000 (17:33 +0100)
commit988e8d90b3dc482637532e61bc2d58bfc4af5167
tree92090db29e6768bcbe4ddc5022ac7de4c535bf43
parent264879fdbea0c3093057d48f3dcc7afeea433fb7
net: phy: at803x: Use devm_regulator_get_enable_optional()

Use devm_regulator_get_enable_optional() instead of hand writing it. It
saves some line of code.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c