mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
ARM: orion: use clkdev_create()
clkdev_create() is a shorter way to write clkdev_alloc() followed by clkdev_add(). Use this instead. Acked-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
dd13fbd9d8
commit
4dbc02302b
1 changed files with 1 additions and 5 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue