diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-03-02 15:35:22 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-05-06 11:58:59 +0100 |
commit | d76a4476a0a6e638d7b424578aa1261f514d1946 (patch) | |
tree | 7963e323e65aeb5441e9f751eedbe3e0f6fafef9 /sound | |
parent | 1ca90bd408a160c95af1ca7ef29b20a789e31d19 (diff) | |
download | linux-d76a4476a0a6e638d7b424578aa1261f514d1946.tar.gz linux-d76a4476a0a6e638d7b424578aa1261f514d1946.tar.bz2 linux-d76a4476a0a6e638d7b424578aa1261f514d1946.zip |
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')
-rw-r--r-- | sound/soc/sh/migor.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/sh/migor.c b/sound/soc/sh/migor.c index 82f582344fe7..672bcd4c252b 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); |