From: Jarkko Nikula Date: Mon, 14 Feb 2011 15:20:20 +0000 (+0200) Subject: ASoC: omap: rx51: Use gpio_request_one to configure tvout_sel gpio X-Git-Tag: v3.12-rc1~3017^2~1226^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8ec598e5d0d66e68184664073e06b432e3dd140;p=kernel%2Fkernel-generic.git ASoC: omap: rx51: Use gpio_request_one to configure tvout_sel gpio Just slight cleanup to be sync with upcoming change. Signed-off-by: Jarkko Nikula Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c index 2d7d411..9411969 100644 --- a/sound/soc/omap/rx51.c +++ b/sound/soc/omap/rx51.c @@ -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) {