]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: sparx5: move calendar initialization to probe
authorDaniel Machon <daniel.machon@microchip.com>
Fri, 27 Feb 2026 14:56:43 +0000 (15:56 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Mar 2026 02:46:21 +0000 (18:46 -0800)
commit274182ff34fdd85f712c2b6e624e1c85c6696685
tree4416ed5b583268805b39c7578f3794a7014d9c9e
parente180067a03cad7043d951b0040f0169a267f0293
net: sparx5: move calendar initialization to probe

Move the calendar initialization from sparx5_start() to probe() by
creating a new sparx5_calendar_init() wrapper function that calls both
sparx5_config_auto_calendar() and sparx5_config_dsm_calendar().
Calendar initialization does not require cleanup.

Also, make the individual calendar config functions static since they
are now only called from within sparx5_calendar.c.

Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://patch.msgid.link/20260227-sparx5-init-deinit-v2-5-10ba54ccf005@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/sparx5/sparx5_calendar.c
drivers/net/ethernet/microchip/sparx5/sparx5_main.c
drivers/net/ethernet/microchip/sparx5/sparx5_main.h