Merge remote-tracking branches 'spi/fix/davinci', 'spi/fix/dw', 'spi/fix/fsl', 'spi...
authorMark Brown <broonie@kernel.org>
Tue, 16 Sep 2014 23:20:19 +0000 (16:20 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 16 Sep 2014 23:20:19 +0000 (16:20 -0700)
1  2  3  4  5  6  7 
drivers/spi/spi-davinci.c
drivers/spi/spi-dw.c
drivers/spi/spi-rockchip.c

index 48f1d26e6ad9868f9ac8c8e11fb0953e90f707da,84a9fb1ab984f44f4bbb2ecf05c268442badfd17,276a3884fb3c1d43c928b0b975b8d7aa67f6be58,276a3884fb3c1d43c928b0b975b8d7aa67f6be58,276a3884fb3c1d43c928b0b975b8d7aa67f6be58,276a3884fb3c1d43c928b0b975b8d7aa67f6be58,276a3884fb3c1d43c928b0b975b8d7aa67f6be58..134fb6eb7b19247dd2bf729d102fcf5e9263bf7c
@@@@@@@@ -413,20 -410,20 -413,20 -413,20 -413,20 -413,20 -413,20 +410,20 @@@@@@@@ static int davinci_spi_setup(struct spi
                           spi->chip_select < pdata->num_chipselect &&
                           pdata->chip_sel[spi->chip_select] != SPI_INTERN_CS) {
                        spi->cs_gpio = pdata->chip_sel[spi->chip_select];
- -----                 retval = gpio_request_one(spi->cs_gpio,
- -----                                           flags, dev_name(&spi->dev));
+ +++++                 retval = gpio_direction_output(
+ +++++                               spi->cs_gpio, !(spi->mode & SPI_CS_HIGH));
                        internal_cs = false;
                }
 ------ }
       
 ------ if (retval) {
 ------         dev_err(&spi->dev, "GPIO %d setup failed (%d)\n",
 ------                 spi->cs_gpio, retval);
 ------         return retval;
 ------ }
 ++++++         if (retval) {
 ++++++                 dev_err(&spi->dev, "GPIO %d setup failed (%d)\n",
 ++++++                         spi->cs_gpio, retval);
 ++++++                 return retval;
 ++++++         }
       
 ------ if (internal_cs)
 ------         set_io_bits(dspi->base + SPIPC0, 1 << spi->chip_select);
 ++++++         if (internal_cs)
 ++++++                 set_io_bits(dspi->base + SPIPC0, 1 << spi->chip_select);
 ++++++ }
       
        if (spi->mode & SPI_READY)
                set_io_bits(dspi->base + SPIPC0, SPIPC0_SPIENA_MASK);
Simple merge
Simple merge