ASoC: omap: rx51: Use gpio_request_one to configure tvout_sel gpio
authorJarkko Nikula <jhnikula@gmail.com>
Mon, 14 Feb 2011 15:20:20 +0000 (17:20 +0200)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 15 Feb 2011 21:53:59 +0000 (21:53 +0000)
Just slight cleanup to be sync with upcoming change.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/omap/rx51.c

index 2d7d4115cb71f576d302a8f291b35f1bcad92414..9411969d6f79c5c253353f0193e7f891f55a72ac 100644 (file)
@@ -394,10 +394,10 @@ static int __init rx51_soc_init(void)
        if (!machine_is_nokia_rx51())
                return -ENODEV;
 
-       err = gpio_request(RX51_TVOUT_SEL_GPIO, "tvout_sel");
+       err = gpio_request_one(RX51_TVOUT_SEL_GPIO,
+                              GPIOF_DIR_OUT | GPIOF_INIT_LOW, "tvout_sel");
        if (err)
                goto err_gpio_tvout_sel;
-       gpio_direction_output(RX51_TVOUT_SEL_GPIO, 0);
 
        rx51_snd_device = platform_device_alloc("soc-audio", -1);
        if (!rx51_snd_device) {