]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
clk: clk-gate: Use struct udevice instead of struct device
authorMarek Vasut <marex@denx.de>
Sun, 23 Mar 2025 15:58:36 +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-gate registration.

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

index bf1c6a93b468c023bfc6e514d77effd879055dab..cef98720b6961fe331282f2151d12f601cbf1bf5 100644 (file)
@@ -117,7 +117,7 @@ const struct clk_ops clk_gate_ops = {
        .get_rate = clk_generic_get_rate,
 };
 
-struct clk *clk_register_gate(struct device *dev, const char *name,
+struct clk *clk_register_gate(struct udevice *dev, const char *name,
                              const char *parent_name, unsigned long flags,
                              void __iomem *reg, u8 bit_idx,
                              u8 clk_gate_flags, spinlock_t *lock)
index f27878ae6faa39b8f087b66ce23c02d54d5036c1..e282be12897734581849c5c0c25c6774f17012aa 100644 (file)
@@ -105,7 +105,7 @@ struct clk_gate {
 #define CLK_GATE_HIWORD_MASK           BIT(1)
 
 extern const struct clk_ops clk_gate_ops;
-struct clk *clk_register_gate(struct device *dev, const char *name,
+struct clk *clk_register_gate(struct udevice *dev, const char *name,
                              const char *parent_name, unsigned long flags,
                              void __iomem *reg, u8 bit_idx,
                              u8 clk_gate_flags, spinlock_t *lock);