]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: platform: use optional clk/reset get APIs
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Thu, 12 Nov 2020 01:27:37 +0000 (09:27 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 14 Nov 2020 00:31:52 +0000 (16:31 -0800)
commit96f3dea91e8f14b249f0ffb71b2c95a18a6c63b3
treec2acd5dc2cc44c4c035ec2b9bd395c8cb5a18046
parent44096e8a69707bdddbd55e079d85602c534664c9
net: stmmac: platform: use optional clk/reset get APIs

Use the devm_reset_control_get_optional() and devm_clk_get_optional()
rather than open coding them.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Link: https://lore.kernel.org/r/20201112092606.5173aa6f@xhacker.debian
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c