]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: imx: Fix wrong flags assignment clk-composite-93
authorMichael Trimarchi <michael@amarulasolutions.com>
Tue, 2 Jul 2024 10:26:18 +0000 (12:26 +0200)
committerFabio Estevam <festevam@gmail.com>
Sat, 6 Jul 2024 12:25:00 +0000 (09:25 -0300)
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 <michael@amarulasolutions.com>
drivers/clk/imx/clk-composite-93.c

index 2cf20be2ccae356e116677076fd9276b47d2d79e..61692d34f9261a2ea490eac45f26192c7c28966d 100644 (file)
@@ -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)
@@ -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,