Skip to content

Commit

Permalink
clk: imx: Fix wrong flags assignment clk-composite-93
Browse files Browse the repository at this point in the history
The mux flags (u8), div flags (u8), and gate flags (u8)  are not the clk
flags (unsigned long). They have different meanings

Signed-off-by: Michael Trimarchi <[email protected]>
  • Loading branch information
panicking authored and fabioestevam committed Jul 6, 2024
1 parent 0515680 commit a66b2ce
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/clk/imx/clk-composite-93.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ struct clk *imx93_clk_composite_flags(const char *name,
mux->mask = CCM_MUX_MASK;
mux->num_parents = num_parents;
mux->parent_names = parent_names;
mux->flags = flags;

div = kzalloc(sizeof(*div), GFP_KERNEL);
if (!div)
Expand All @@ -119,7 +118,6 @@ struct clk *imx93_clk_composite_flags(const char *name,

gate->reg = reg;
gate->bit_idx = CCM_OFF_SHIFT;
gate->flags = flags;

clk = clk_register_composite(NULL, name,
parent_names, num_parents,
Expand Down

0 comments on commit a66b2ce

Please sign in to comment.