summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clkdev.c
diff options
context:
space:
mode:
authorStephen Boyd2018-01-03 00:47:07 +0100
committerStephen Boyd2018-01-03 01:12:00 +0100
commit0d4e3d005cb3c7b45463c91b4007d2b9f195879e (patch)
treecf9d730214748944d982853575e4e05219363692 /drivers/clk/clkdev.c
parentblackfin: Use generic clkdev.h header (diff)
downloadkernel-qcow2-linux-0d4e3d005cb3c7b45463c91b4007d2b9f195879e.tar.gz
kernel-qcow2-linux-0d4e3d005cb3c7b45463c91b4007d2b9f195879e.tar.xz
kernel-qcow2-linux-0d4e3d005cb3c7b45463c91b4007d2b9f195879e.zip
clk: Prepare to remove asm-generic/clkdev.h
Now that all the users of asm/clkdev.h have been replaced with the generic file we can get rid of the asm-generic file as well and implement that code directly where it's used. We only have one caller of __clkdev_alloc(), in clkdev.c so we can easily remove that and drop the include of asm/clkdev.h in linux/clkdev.h by putting the __clk_get/__clk_put inlines in their respective location. Cc: Russell King <linux@armlinux.org.uk> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/clkdev.c')
-rw-r--r--drivers/clk/clkdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c
index 6b2f29df3f70..7513411140b6 100644
--- a/drivers/clk/clkdev.c
+++ b/drivers/clk/clkdev.c
@@ -256,7 +256,7 @@ vclkdev_alloc(struct clk_hw *hw, const char *con_id, const char *dev_fmt,
{
struct clk_lookup_alloc *cla;
- cla = __clkdev_alloc(sizeof(*cla));
+ cla = kzalloc(sizeof(*cla), GFP_KERNEL);
if (!cla)
return NULL;