]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clk: bcm: iproc-asiu: simplify allocation
authorRosen Penev <rosenp@gmail.com>
Thu, 26 Mar 2026 04:53:24 +0000 (21:53 -0700)
committerStephen Boyd <sboyd@kernel.org>
Wed, 29 Apr 2026 01:45:24 +0000 (18:45 -0700)
commit6f1791ca46f2d1e20f3b490b5358a2e6802c3834
tree17159efd6fce5f014f7fdae3e706fae437fa3877
parent4266035a40b6f27f82b5f85dd4e8e23f9a0644a2
clk: bcm: iproc-asiu: simplify allocation

Use kzalloc_flex and a flexible array member to combine allocations

While at it, take clk_data out of the struct and move it into probe.
It's not used anywhere else.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/bcm/clk-iproc-asiu.c