ASoC: migor: use clkdev_create()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 2 Mar 2015 15:35:22 +0000 (15:35 +0000)
committerRussell 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.

Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
sound/soc/sh/migor.c

index 82f582344fe7e1dfce0e39af7c69289c5c4a3a3d..672bcd4c252bd3d17b3c1981be0e9b9ed5e53cc0 100644 (file)
@@ -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);