Skip to content

Commit b18ed66

Browse files
committed
Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
Pull clk fixes from Stephen Boyd: "Two small fixes, one for the x86 Stoney SoC to get a more accurate clk frequency and the other to fix a bad allocation in the Nuvoton NPCM7XX driver" * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: clk: x86: Set default parent to 48Mhz clk: npcm7xx: fix memory allocation
2 parents 420f51f + bded6c0 commit b18ed66

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/clk/clk-npcm7xx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,8 @@ static void __init npcm7xx_clk_init(struct device_node *clk_np)
558558
if (!clk_base)
559559
goto npcm7xx_init_error;
560560

561-
npcm7xx_clk_data = kzalloc(sizeof(*npcm7xx_clk_data->hws) *
562-
NPCM7XX_NUM_CLOCKS + sizeof(npcm7xx_clk_data), GFP_KERNEL);
561+
npcm7xx_clk_data = kzalloc(struct_size(npcm7xx_clk_data, hws,
562+
NPCM7XX_NUM_CLOCKS), GFP_KERNEL);
563563
if (!npcm7xx_clk_data)
564564
goto npcm7xx_init_np_err;
565565

drivers/clk/x86/clk-st.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static int st_clk_probe(struct platform_device *pdev)
4646
clk_oscout1_parents, ARRAY_SIZE(clk_oscout1_parents),
4747
0, st_data->base + CLKDRVSTR2, OSCOUT1CLK25MHZ, 3, 0, NULL);
4848

49-
clk_set_parent(hws[ST_CLK_MUX]->clk, hws[ST_CLK_25M]->clk);
49+
clk_set_parent(hws[ST_CLK_MUX]->clk, hws[ST_CLK_48M]->clk);
5050

5151
hws[ST_CLK_GATE] = clk_hw_register_gate(NULL, "oscout1", "oscout1_mux",
5252
0, st_data->base + MISCCLKCNTL1, OSCCLKENB,

0 commit comments

Comments
 (0)