]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: macb: Clean up the .clk_init setting in the macb_config instances
authorKevin Hao <haokexin@gmail.com>
Tue, 10 Mar 2026 10:12:07 +0000 (18:12 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Mar 2026 02:00:33 +0000 (19:00 -0700)
commitf97977944d1587fc01736da8b138d7bb9c526d02
tree4d996c90e7222fe599c1c9b94ee5400994a4d37a
parent7e27d6202e90bc1c2ff16cd3118cb5456214ee42
net: macb: Clean up the .clk_init setting in the macb_config instances

All instances of macb_config currently have .clk_init set, but most of
them use macb_clk_init(). In fact, there is no need to duplicate this
across all macb_config instances. Introduce a new macb_clk_init()
function that executes the specific .clk_init if it is set; otherwise,
it runs the default clock initialization function.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Link: https://patch.msgid.link/20260310-macb-cleanup-v1-1-928c1a91a7dc@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_main.c