summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clkdev.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-03-09 11:43:04 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2015-05-06 12:58:57 +0200
commitb3d8d7e89fab374d731dfb46fe048f09766ca9c8 (patch)
treee10428410ad02b5f01d574ffca1846511170d090 /drivers/clk/clkdev.c
parentclkdev: get rid of redundant clk_add_alias() prototype in linux/clk.h (diff)
downloadlinux-b3d8d7e89fab374d731dfb46fe048f09766ca9c8.tar.xz
linux-b3d8d7e89fab374d731dfb46fe048f09766ca9c8.zip
clkdev: const-ify connection id to clk_add_alias()
The connection id is only passed to clk_get() which is already const. Const-ify this argument too. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/clk/clkdev.c')
-rw-r--r--drivers/clk/clkdev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c
index 04b59ad6d852..e112e13af760 100644
--- a/drivers/clk/clkdev.c
+++ b/drivers/clk/clkdev.c
@@ -288,10 +288,10 @@ clkdev_alloc(struct clk *clk, const char *con_id, const char *dev_fmt, ...)
}
EXPORT_SYMBOL(clkdev_alloc);
-int clk_add_alias(const char *alias, const char *alias_dev_name, char *id,
- struct device *dev)
+int clk_add_alias(const char *alias, const char *alias_dev_name,
+ const char *con_id, struct device *dev)
{
- struct clk *r = clk_get(dev, id);
+ struct clk *r = clk_get(dev, con_id);
struct clk_lookup *l;
if (IS_ERR(r))