]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/spi/atmel_spi.c
Use the APIC to determine the hardware processor id - i386
[linux-2.6-omap-h63xx.git] / drivers / spi / atmel_spi.c
index 6fa260d1a9be06607be15658bcbc3b7a452b18e8..66e7bc985797a0d8acce875c3281e744f7db9849 100644 (file)
@@ -425,7 +425,7 @@ static int atmel_spi_setup(struct spi_device *spi)
                if (ret)
                        return ret;
                spi->controller_state = (void *)npcs_pin;
-               gpio_direction_output(npcs_pin);
+               gpio_direction_output(npcs_pin, !(spi->mode & SPI_CS_HIGH));
        }
 
        dev_dbg(&spi->dev,