Re: [PATCH 0/4] driver: core: add subsys_platform_driver() to reduce boilerplate code in drivers
From: Bjorn Andersson
Date: Thu Sep 17 2026 - 21:55:24 EST
On Tue, 08 Sep 2026 13:47:17 -0400, Brian Masney wrote:
> There are a fair number of clk drivers that are registered at the
> subsys_initcall level since some clk drivers need to be initialized
> early for other drivers. Let's add a new macro
> subsys_platform_driver() similar module_platform_driver() to eliminate
> some boilerplate code in the drivers.
>
> This series converts the Qualcomm and Renesas clk drivers to show the
> code savings that can be achieved. Once this lands, I'll convert the
> remaining clk drivers this development cycle if all of this can go
> through the clk tree.
>
> [...]
Applied, thanks!
[1/4] driver: core: add subsys_driver() macro
commit: 255a14e7c16569f75248640dbd854c632b9d4bee
[2/4] driver: core: platform: add subsys_platform_driver() macro
commit: 5065ca1325639b0341521f2057e6e2f3b52241a6
[3/4] clk: qcom: convert drivers over to use subsys_platform_driver()
commit: 51c6b675682a9cf5546fb057fed8f99361b56cf2
[4/4] clk: renesas: convert drivers over to use subsys_platform_driver()
commit: d11a91e088cefa4b56d7877b49492d8e1dc818dc
Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>