提交 4dbc0230 编写于 作者: R Russell King

ARM: orion: use clkdev_create()

clkdev_create() is a shorter way to write clkdev_alloc() followed by
clkdev_add().  Use this instead.
Acked-by: NAndrew Lunn <andrew@lunn.ch>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 dd13fbd9
...@@ -28,11 +28,7 @@ ...@@ -28,11 +28,7 @@
void __init orion_clkdev_add(const char *con_id, const char *dev_id, void __init orion_clkdev_add(const char *con_id, const char *dev_id,
struct clk *clk) struct clk *clk)
{ {
struct clk_lookup *cl; clkdev_create(clk, con_id, "%s", dev_id);
cl = clkdev_alloc(clk, con_id, dev_id);
if (cl)
clkdev_add(cl);
} }
/* Create clkdev entries for all orion platforms except kirkwood. /* Create clkdev entries for all orion platforms except kirkwood.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册