]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
clk: at91: audio-pll: fix audio pmc type
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 16 Oct 2018 14:21:39 +0000 (16:21 +0200)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:20:50 +0000 (14:20 -0300)
BugLink: https://bugs.launchpad.net/bugs/1854975
[ Upstream commit 7fa75007b7d7421aea59ff2b12ab1bd65a5abfa6 ]

The allocation for the audio pmc is using the size of struct clk_audio_pad
instead of struct clk_audio_pmc. This works fine because the former is
larger than the latter but it is safer to be correct.

Fixes: ("0865805d82d4 clk: at91: add audio pll clock drivers")
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/clk/at91/clk-audio-pll.c

index da7bafcfbe706cef631e86f3df8dc86536f5900c..b3eaf654fac980ed01cee5e467ad089cb561f066 100644 (file)
@@ -509,7 +509,7 @@ static void __init of_sama5d2_clk_audio_pll_pad_setup(struct device_node *np)
 
 static void __init of_sama5d2_clk_audio_pll_pmc_setup(struct device_node *np)
 {
-       struct clk_audio_pad *apmc_ck;
+       struct clk_audio_pmc *apmc_ck;
        struct clk_init_data init = {};
 
        apmc_ck = kzalloc(sizeof(*apmc_ck), GFP_KERNEL);