]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
clk: clk-composite: Use struct udevice instead of struct device
authorMarek Vasut <marex@denx.de>
Sun, 23 Mar 2025 15:58:42 +0000 (16:58 +0100)
committerFabio Estevam <festevam@gmail.com>
Mon, 24 Mar 2025 11:51:34 +0000 (08:51 -0300)
Use U-Boot specific struct udevice instead of Linux compatibility
struct device in clk-composite registration.

Signed-off-by: Marek Vasut <marex@denx.de>
drivers/clk/clk-composite.c
include/linux/clk-provider.h

index 199ca6eaa370a87bfce567ee72a40024c562b48f..1191bdf87dfa2a9e5f3d1e68a36192c67a95b9cf 100644 (file)
@@ -97,7 +97,7 @@ static int clk_composite_disable(struct clk *clk)
                return 0;
 }
 
-struct clk *clk_register_composite(struct device *dev, const char *name,
+struct clk *clk_register_composite(struct udevice *dev, const char *name,
                                   const char * const *parent_names,
                                   int num_parents, struct clk *mux,
                                   const struct clk_ops *mux_ops,
index e282be12897734581849c5c0c25c6774f17012aa..d44ead53079f77958411c9809144a120ba3f65fb 100644 (file)
@@ -223,7 +223,7 @@ struct clk_composite {
 
 #define to_clk_composite(_clk) container_of(_clk, struct clk_composite, clk)
 
-struct clk *clk_register_composite(struct device *dev, const char *name,
+struct clk *clk_register_composite(struct udevice *dev, const char *name,
                const char * const *parent_names, int num_parents,
                struct clk *mux_clk, const struct clk_ops *mux_ops,
                struct clk *rate_clk, const struct clk_ops *rate_ops,