diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-05-21 00:20:58 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2022-05-21 07:32:22 +0300 |
commit | b7fa6242f3e035308a76284560e4f918dad9b017 (patch) | |
tree | 3412d4b0e5ad37135d6b8f3bdf766abfc97d2350 /drivers/clk/bcm | |
parent | b69b0adc71637d436883c5ed9bfadbfbb7e02fda (diff) | |
download | linux-b7fa6242f3e035308a76284560e4f918dad9b017.tar.xz |
clk: bcm: rpi: Use correct order for the parameters of devm_kcalloc()
We should have 'n', then 'size', not the opposite.
This is harmless because the 2 values are just multiplied, but having
the correct order silence a (unpublished yet) smatch warning.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/49d726d11964ca0e3757bdb5659e3b3eaa1572b5.1653081643.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/bcm')
-rw-r--r-- | drivers/clk/bcm/clk-raspberrypi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/bcm/clk-raspberrypi.c b/drivers/clk/bcm/clk-raspberrypi.c index 9d09621549b9..73518009a0f2 100644 --- a/drivers/clk/bcm/clk-raspberrypi.c +++ b/drivers/clk/bcm/clk-raspberrypi.c @@ -345,7 +345,7 @@ static int raspberrypi_discover_clocks(struct raspberrypi_clk *rpi, int ret; clks = devm_kcalloc(rpi->dev, - sizeof(*clks), RPI_FIRMWARE_NUM_CLK_ID, + RPI_FIRMWARE_NUM_CLK_ID, sizeof(*clks), GFP_KERNEL); if (!clks) return -ENOMEM; |