clk: clk-gate: Use struct udevice instead of struct device
Use U-Boot specific struct udevice instead of Linux compatibility struct device in clk-gate registration. Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:

committed by
Fabio Estevam

parent
0a930930f8
commit
aee51ad0d9
@@ -117,7 +117,7 @@ const struct clk_ops clk_gate_ops = {
|
|||||||
.get_rate = clk_generic_get_rate,
|
.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,
|
const char *parent_name, unsigned long flags,
|
||||||
void __iomem *reg, u8 bit_idx,
|
void __iomem *reg, u8 bit_idx,
|
||||||
u8 clk_gate_flags, spinlock_t *lock)
|
u8 clk_gate_flags, spinlock_t *lock)
|
||||||
|
@@ -105,7 +105,7 @@ struct clk_gate {
|
|||||||
#define CLK_GATE_HIWORD_MASK BIT(1)
|
#define CLK_GATE_HIWORD_MASK BIT(1)
|
||||||
|
|
||||||
extern const struct clk_ops clk_gate_ops;
|
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,
|
const char *parent_name, unsigned long flags,
|
||||||
void __iomem *reg, u8 bit_idx,
|
void __iomem *reg, u8 bit_idx,
|
||||||
u8 clk_gate_flags, spinlock_t *lock);
|
u8 clk_gate_flags, spinlock_t *lock);
|
||||||
|
Reference in New Issue
Block a user