summaryrefslogtreecommitdiffstats
path: root/sound/soc/sh/migor.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-03-02 15:35:22 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2015-05-06 11:58:59 +0100
commitd76a4476a0a6e638d7b424578aa1261f514d1946 (patch)
tree7963e323e65aeb5441e9f751eedbe3e0f6fafef9 /sound/soc/sh/migor.c
parent1ca90bd408a160c95af1ca7ef29b20a789e31d19 (diff)
downloadop-kernel-dev-d76a4476a0a6e638d7b424578aa1261f514d1946.zip
op-kernel-dev-d76a4476a0a6e638d7b424578aa1261f514d1946.tar.gz
ASoC: migor: use clkdev_create()
clkdev_create() is a shorter way to write clkdev_alloc() followed by clkdev_add(). Use this instead. Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'sound/soc/sh/migor.c')
-rw-r--r--sound/soc/sh/migor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/sh/migor.c b/sound/soc/sh/migor.c
index 82f5823..672bcd4 100644
--- a/sound/soc/sh/migor.c
+++ b/sound/soc/sh/migor.c
@@ -162,12 +162,11 @@ static int __init migor_init(void)
if (ret < 0)
return ret;
- siumckb_lookup = clkdev_alloc(&siumckb_clk, "siumckb_clk", NULL);
+ siumckb_lookup = clkdev_create(&siumckb_clk, "siumckb_clk", NULL);
if (!siumckb_lookup) {
ret = -ENOMEM;
goto eclkdevalloc;
}
- clkdev_add(siumckb_lookup);
/* Port number used on this machine: port B */
migor_snd_device = platform_device_alloc("soc-audio", 1);
OpenPOWER on IntegriCloud