Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clk: bcm63xx-gate: fix last clock availability

In order to make the last clock available, maxbit has to be set to the
highest bit value plus 1.

Fixes: 1c099779c1e2 ("clk: add BCM63XX gated clock controller driver")
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Link: https://lore.kernel.org/r/20200609110846.4029620-1-noltari@gmail.com
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Álvaro Fernández Rojas and committed by
Stephen Boyd
cf8030d7 b3a9e3b9

+1
+1
drivers/clk/bcm/clk-bcm63xx-gate.c
··· 155 155 156 156 for (entry = table; entry->name; entry++) 157 157 maxbit = max_t(u8, maxbit, entry->bit); 158 + maxbit++; 158 159 159 160 hw = devm_kzalloc(&pdev->dev, struct_size(hw, data.hws, maxbit), 160 161 GFP_KERNEL);