pwm: pwm-mediatek: Allocate clk_pwms with devm_kmalloc_array
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 14 Feb 2022 14:03:38 +0000 (15:03 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 24 Feb 2022 13:50:40 +0000 (14:50 +0100)
commit446925f1d4ca9ff8c9e531498ddca4f47683e1ee
tree02ce97d78abeac54d8551807f53b67327c122428
parent5264e8ca762bb1b0d5cdd7e5c2f727200408836f
pwm: pwm-mediatek: Allocate clk_pwms with devm_kmalloc_array

Switch from devm_kcalloc to devm_kmalloc_array when allocating clk_pwms,
as this structure is being filled right after allocating it, hence
there is no need to zero it out beforehand.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-mediatek.c