diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-03-02 18:35:22 +0300 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-05-06 13:58:58 +0300 |
commit | 4dbc02302b8ca6e4a1a030cc5e7fa93b5634962d (patch) | |
tree | 0a17d66c7f5767b1fedb95a8e037c4946d95c6d0 /arch/arm/plat-orion/common.c | |
parent | dd13fbd9d8562c8e6845cd87a3a1a9d372618d96 (diff) | |
download | linux-4dbc02302b8ca6e4a1a030cc5e7fa93b5634962d.tar.xz |
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>
Diffstat (limited to 'arch/arm/plat-orion/common.c')
-rw-r--r-- | arch/arm/plat-orion/common.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/plat-orion/common.c b/arch/arm/plat-orion/common.c index f5b00f41c4f6..2235081a04ee 100644 --- a/arch/arm/plat-orion/common.c +++ b/arch/arm/plat-orion/common.c @@ -28,11 +28,7 @@ void __init orion_clkdev_add(const char *con_id, const char *dev_id, struct clk *clk) { - struct clk_lookup *cl; - - cl = clkdev_alloc(clk, con_id, dev_id); - if (cl) - clkdev_add(cl); + clkdev_create(clk, con_id, "%s", dev_id); } /* Create clkdev entries for all orion platforms except kirkwood. |