clk: clk-divider: Use struct udevice instead of struct device
Use U-Boot specific struct udevice instead of Linux compatibility struct device in clk-divider clock registration. Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
committed by
Fabio Estevam
parent
63fa948550
commit
e14dd5c35a
@@ -183,7 +183,7 @@ const struct clk_ops clk_divider_ops = {
|
||||
.set_rate = clk_divider_set_rate,
|
||||
};
|
||||
|
||||
static struct clk *_register_divider(struct device *dev, const char *name,
|
||||
static struct clk *_register_divider(struct udevice *dev, const char *name,
|
||||
const char *parent_name, unsigned long flags,
|
||||
void __iomem *reg, u8 shift, u8 width,
|
||||
u8 clk_divider_flags, const struct clk_div_table *table)
|
||||
@@ -227,7 +227,7 @@ static struct clk *_register_divider(struct device *dev, const char *name,
|
||||
return clk;
|
||||
}
|
||||
|
||||
struct clk *clk_register_divider(struct device *dev, const char *name,
|
||||
struct clk *clk_register_divider(struct udevice *dev, const char *name,
|
||||
const char *parent_name, unsigned long flags,
|
||||
void __iomem *reg, u8 shift, u8 width,
|
||||
u8 clk_divider_flags)
|
||||
|
||||
@@ -237,7 +237,7 @@ struct clk *clk_register_fixed_factor(struct device *dev, const char *name,
|
||||
const char *parent_name, unsigned long flags,
|
||||
unsigned int mult, unsigned int div);
|
||||
|
||||
struct clk *clk_register_divider(struct device *dev, const char *name,
|
||||
struct clk *clk_register_divider(struct udevice *dev, const char *name,
|
||||
const char *parent_name, unsigned long flags,
|
||||
void __iomem *reg, u8 shift, u8 width,
|
||||
u8 clk_divider_flags);
|
||||
|
||||
Reference in New Issue
Block a user