]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Aug 2023 15:52:18 +0000 (17:52 +0200)
commit7dcc894e1518b5be6de890deaafbcbef54c26d72
treea5339611c0ef659fd54e07d8068d49461cd276db
parent0d52759710faf29e32acbb72e8a2a05c210dcffd
net: phy: at803x: Use devm_regulator_get_enable_optional()

[ Upstream commit 988e8d90b3dc482637532e61bc2d58bfc4af5167 ]

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>
Stable-dep-of: e58f30246c35 ("net: phy: at803x: fix the wol setting functions")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/at803x.c