aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKever Yang2019-08-28 16:23:49 +0800
committerKever Yang2019-09-11 16:16:12 +0800
commit899c3b352390d5fc5beaff4f9fa9919b0ec329ec (patch)
tree2a4e70c1e408076fc447ec464747995a19c29f88
parentc7ed19047e8119548fc65803bb9a24c66b5fc4e7 (diff)
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>
-rw-r--r--drivers/clk/rockchip/clk_rk3328.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/clk/rockchip/clk_rk3328.c b/drivers/clk/rockchip/clk_rk3328.c
index 5957a00402d..a89e2ecc4ad 100644
--- a/drivers/clk/rockchip/clk_rk3328.c
+++ b/drivers/clk/rockchip/clk_rk3328.c
@@ -745,22 +745,10 @@ static int rk3328_clk_set_parent(struct clk *clk, struct clk *parent)
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 = {
.get_rate = rk3328_clk_get_rate,
.set_rate = rk3328_clk_set_rate,
.set_parent = rk3328_clk_set_parent,
- .enable = rk3328_clk_enable,
};
static int rk3328_clk_probe(struct udevice *dev)