Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -5
+1 -5
arch/arm/plat-orion/common.c
··· 28 28 void __init orion_clkdev_add(const char *con_id, const char *dev_id, 29 29 struct clk *clk) 30 30 { 31 - struct clk_lookup *cl; 32 - 33 - cl = clkdev_alloc(clk, con_id, dev_id); 34 - if (cl) 35 - clkdev_add(cl); 31 + clkdev_create(clk, con_id, "%s", dev_id); 36 32 } 37 33 38 34 /* Create clkdev entries for all orion platforms except kirkwood.