projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d76a447
)
clk: s2mps11: use clkdev_create()
author
Russell King
<rmk+kernel@arm.linux.org.uk>
Mon, 2 Mar 2015 15:35:22 +0000
(15:35 +0000)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Wed, 6 May 2015 10:58:59 +0000
(11:58 +0100)
clkdev_create() is a shorter way to write clkdev_alloc() followed by
clkdev_add(). Use this instead.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/clk/clk-s2mps11.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk-s2mps11.c
b/drivers/clk/clk-s2mps11.c
index bfa1e64e267d36a9286d5701069305133b5a092c..9b13a303d3f81e432f6ddac4ffe85dd27d4c8f82 100644
(file)
--- a/
drivers/clk/clk-s2mps11.c
+++ b/
drivers/clk/clk-s2mps11.c
@@
-242,14
+242,12
@@
static int s2mps11_clk_probe(struct platform_device *pdev)
goto err_reg;
}
- s2mps11_clk->lookup = clkdev_
alloc
(s2mps11_clk->clk,
+ s2mps11_clk->lookup = clkdev_
create
(s2mps11_clk->clk,
s2mps11_name(s2mps11_clk), NULL);
if (!s2mps11_clk->lookup) {
ret = -ENOMEM;
goto err_lup;
}
-
- clkdev_add(s2mps11_clk->lookup);
}
for (i = 0; i < S2MPS11_CLKS_NUM; i++) {