Merge branch 'topic/rcar' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie...
authorMark Brown <broonie@linaro.org>
Tue, 14 Jan 2014 14:14:47 +0000 (14:14 +0000)
committerMark Brown <broonie@linaro.org>
Tue, 14 Jan 2014 14:14:47 +0000 (14:14 +0000)
1  2 
drivers/spi/spi-rspi.c

@@@ -300,10 -268,10 +300,10 @@@ static int qspi_set_config_register(con
                spcmd = SPCMD_SPB_8BIT;
        else if (access_size == 16)
                spcmd = SPCMD_SPB_16BIT;
-       else if (access_size == 32)
+       else
                spcmd = SPCMD_SPB_32BIT;
  
 -      spcmd |= SPCMD_SCKDEN | SPCMD_SLNDEN | SPCMD_SSLKP | SPCMD_SPNDEN;
 +      spcmd |= SPCMD_SCKDEN | SPCMD_SLNDEN | rspi->spcmd | SPCMD_SPNDEN;
  
        /* Resets transfer data length */
        rspi_write32(rspi, 0, QSPI_SPBMUL0);
@@@ -1003,12 -956,12 +993,13 @@@ static int rspi_probe(struct platform_d
        master->setup = rspi_setup;
        master->transfer = rspi_transfer;
        master->cleanup = rspi_cleanup;
 +      master->mode_bits = SPI_CPHA | SPI_CPOL;
  
-       ret = request_irq(irq, rspi_irq, 0, dev_name(&pdev->dev), rspi);
+       ret = devm_request_irq(&pdev->dev, irq, rspi_irq, 0,
+                              dev_name(&pdev->dev), rspi);
        if (ret < 0) {
                dev_err(&pdev->dev, "request_irq error\n");
-               goto error3;
+               goto error1;
        }
  
        rspi->irq = irq;