diff options
author | Jarkko Nikula <jhnikula@gmail.com> | 2011-02-14 10:20:20 -0500 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2011-02-15 16:53:59 -0500 |
commit | d8ec598e5d0d66e68184664073e06b432e3dd140 (patch) | |
tree | 290abe8073e9313c2b25a6627053b07d7fbb2971 /sound/soc | |
parent | 273de37655369e57919f19e157fafb2b4b1e4472 (diff) |
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 <jhnikula@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/omap/rx51.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c index 2d7d4115cb71..9411969d6f79 100644 --- a/sound/soc/omap/rx51.c +++ b/sound/soc/omap/rx51.c | |||
@@ -394,10 +394,10 @@ static int __init rx51_soc_init(void) | |||
394 | if (!machine_is_nokia_rx51()) | 394 | if (!machine_is_nokia_rx51()) |
395 | return -ENODEV; | 395 | return -ENODEV; |
396 | 396 | ||
397 | err = gpio_request(RX51_TVOUT_SEL_GPIO, "tvout_sel"); | 397 | err = gpio_request_one(RX51_TVOUT_SEL_GPIO, |
398 | GPIOF_DIR_OUT | GPIOF_INIT_LOW, "tvout_sel"); | ||
398 | if (err) | 399 | if (err) |
399 | goto err_gpio_tvout_sel; | 400 | goto err_gpio_tvout_sel; |
400 | gpio_direction_output(RX51_TVOUT_SEL_GPIO, 0); | ||
401 | 401 | ||
402 | rx51_snd_device = platform_device_alloc("soc-audio", -1); | 402 | rx51_snd_device = platform_device_alloc("soc-audio", -1); |
403 | if (!rx51_snd_device) { | 403 | if (!rx51_snd_device) { |