Skip to content

Commit

Permalink
ASoC: omap: rx51: Use gpio_request_one to configure tvout_sel gpio
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jarkko Nikula authored and Liam Girdwood committed Feb 15, 2011
1 parent 273de37 commit d8ec598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/omap/rx51.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d8ec598

Please sign in to comment.