Commit d76a4476 authored by Russell King's avatar Russell King

ASoC: migor: use clkdev_create()

clkdev_create() is a shorter way to write clkdev_alloc() followed by
clkdev_add().  Use this instead.
Acked-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 1ca90bd4
...@@ -162,12 +162,11 @@ static int __init migor_init(void) ...@@ -162,12 +162,11 @@ static int __init migor_init(void)
if (ret < 0) if (ret < 0)
return ret; return ret;
siumckb_lookup = clkdev_alloc(&siumckb_clk, "siumckb_clk", NULL); siumckb_lookup = clkdev_create(&siumckb_clk, "siumckb_clk", NULL);
if (!siumckb_lookup) { if (!siumckb_lookup) {
ret = -ENOMEM; ret = -ENOMEM;
goto eclkdevalloc; goto eclkdevalloc;
} }
clkdev_add(siumckb_lookup);
/* Port number used on this machine: port B */ /* Port number used on this machine: port B */
migor_snd_device = platform_device_alloc("soc-audio", 1); migor_snd_device = platform_device_alloc("soc-audio", 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment