Skip to content
Commit 605b98fc authored by Jisheng Zhang's avatar Jisheng Zhang Committed by Yongxin Liu
Browse files

net: stmmac: platform: use optional clk/reset get APIs

commit bb3222f7

 upstream.

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

Signed-off-by: default avatarJisheng Zhang <Jisheng.Zhang@synaptics.com>
Link: https://lore.kernel.org/r/20201112092606.5173aa6f@xhacker.debian
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarYongxin Liu <yongxin.liu@windriver.com>
parent 32677fb2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment