[alsa-devel] [PATCH] EDB93xx: Add support for CS4271 CODEC on EDB93xx boards

Mark Brown
2011-02-02T10:51:47Z

On Wed, Feb 02, 2011 at 02:40:53AM +0300, Alexander Sverdlin wrote:

> + err = gpio_request(gpio_nreset, spi->modalias);
> + if (err)
> + return err;
> + err = gpio_request(EP93XX_GPIO_LINE_EGPIO6, spi->modalias);
> + if (err)
> + return err;
> +
> + gpio_direction_output(EP93XX_GPIO_LINE_EGPIO6, 1);

Why is this stuff in the arch/arm code? I'd expect driver to deal with
all this sequencing.