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)
commitbb3222f71b57caa2ba80db2dce4677f84ba4bd37
treec2acd5dc2cc44c4c035ec2b9bd395c8cb5a18046
parentca1ab89cd2d654661f559bd83ad9fc7323cb6c86
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