spi: move common spi_setup() functionality into core
[deliverable/linux.git] / drivers / spi / spi_s3c24xx.c
index b3ebc1d0f85fc8ac93c4935eb793f8193d9e7682..18a4c7f54380322885c0c1e7a0164099b24fe759 100644 (file)
@@ -153,9 +153,6 @@ static int s3c24xx_spi_setup(struct spi_device *spi)
 {
        int ret;
 
-       if (!spi->bits_per_word)
-               spi->bits_per_word = 8;
-
        if (spi->mode & ~MODEBITS) {
                dev_dbg(&spi->dev, "setup: unsupported mode bits %x\n",
                        spi->mode & ~MODEBITS);
@@ -168,10 +165,6 @@ static int s3c24xx_spi_setup(struct spi_device *spi)
                return ret;
        }
 
-       dev_dbg(&spi->dev, "%s: mode %d, %u bpw, %d hz\n",
-               __func__, spi->mode, spi->bits_per_word,
-               spi->max_speed_hz);
-
        return 0;
 }
 
This page took 0.026082 seconds and 5 git commands to generate.