mirror of
https://xff.cz/git/u-boot/
synced 2025-09-26 04:51:17 +02:00
rockchip: clk: rk3328: remove clk_enable()
There is no real driver for clk enable/disable now, and we actually don't need it now, remove it so that not waste CPU cycles and code size. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
@@ -745,22 +745,10 @@ static int rk3328_clk_set_parent(struct clk *clk, struct clk *parent)
|
|||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int rk3328_clk_enable(struct clk *clk)
|
|
||||||
{
|
|
||||||
switch (clk->id) {
|
|
||||||
case HCLK_HOST0:
|
|
||||||
/* Required to successfully probe the ehci generic driver */
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return -ENOENT;
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct clk_ops rk3328_clk_ops = {
|
static struct clk_ops rk3328_clk_ops = {
|
||||||
.get_rate = rk3328_clk_get_rate,
|
.get_rate = rk3328_clk_get_rate,
|
||||||
.set_rate = rk3328_clk_set_rate,
|
.set_rate = rk3328_clk_set_rate,
|
||||||
.set_parent = rk3328_clk_set_parent,
|
.set_parent = rk3328_clk_set_parent,
|
||||||
.enable = rk3328_clk_enable,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int rk3328_clk_probe(struct udevice *dev)
|
static int rk3328_clk_probe(struct udevice *dev)
|
||||||
|
Reference in New Issue
Block a user