mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
rockchip: clk: rk3368: 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:
parent
899c3b3523
commit
7be113ba79
1 changed files with 0 additions and 19 deletions
|
@ -566,31 +566,12 @@ static int __maybe_unused rk3368_clk_set_parent(struct clk *clk, struct clk *par
|
|||
return -ENOENT;
|
||||
}
|
||||
|
||||
static int rk3368_clk_enable(struct clk *clk)
|
||||
{
|
||||
switch (clk->id) {
|
||||
case SCLK_MAC:
|
||||
case SCLK_MAC_RX:
|
||||
case SCLK_MAC_TX:
|
||||
case SCLK_MACREF:
|
||||
case SCLK_MACREF_OUT:
|
||||
case ACLK_GMAC:
|
||||
case PCLK_GMAC:
|
||||
/* Required to successfully probe the Designware GMAC driver */
|
||||
return 0;
|
||||
}
|
||||
|
||||
debug("%s: unsupported clk %ld\n", __func__, clk->id);
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
static struct clk_ops rk3368_clk_ops = {
|
||||
.get_rate = rk3368_clk_get_rate,
|
||||
.set_rate = rk3368_clk_set_rate,
|
||||
#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)
|
||||
.set_parent = rk3368_clk_set_parent,
|
||||
#endif
|
||||
.enable = rk3368_clk_enable,
|
||||
};
|
||||
|
||||
static int rk3368_clk_probe(struct udevice *dev)
|
||||
|
|
Loading…
Reference in a new issue