Merge remote-tracking branches 'spi/topic/pxa2xx', 'spi/topic/qspi', 'spi/topic/s3c24...
authorMark Brown <broonie@linaro.org>
Thu, 23 Jan 2014 13:07:14 +0000 (13:07 +0000)
committerMark Brown <broonie@linaro.org>
Thu, 23 Jan 2014 13:07:14 +0000 (13:07 +0000)
1  2  3  4  5  6  7  8  9  10  11 
drivers/spi/Kconfig
drivers/spi/spi-pxa2xx.c
drivers/spi/spi-sh.c
drivers/spi/spi-ti-qspi.c
drivers/spi/spi-txx9.c

Simple merge
Simple merge
Simple merge
@@@@@@@@@@@@ -460,9 -462,10 -445,38 -462,10 -462,10 -462,10 -462,10 -462,10 -462,10 -462,10 -462,10 +443,37 @@@@@@@@@@@@ static int ti_qspi_probe(struct platfor
                qspi = spi_master_get_devdata(master);
                qspi->master = master;
                qspi->dev = &pdev->dev;
-               r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 ++++++++++     platform_set_drvdata(pdev, qspi);
 + ++++++++
 - --------     r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
++ ++++++++     r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "qspi_base");
++ ++++++++     if (r == NULL) {
++ ++++++++             r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
++ ++++++++             if (r == NULL) {
++ ++++++++                     dev_err(&pdev->dev, "missing platform data\n");
++ ++++++++                     return -ENODEV;
++ ++++++++             }
++ ++++++++     }
+          
++ ++++++++     res_mmap = platform_get_resource_byname(pdev,
++ ++++++++                     IORESOURCE_MEM, "qspi_mmap");
++ ++++++++     if (res_mmap == NULL) {
++ ++++++++             res_mmap = platform_get_resource(pdev, IORESOURCE_MEM, 1);
++ ++++++++             if (res_mmap == NULL) {
++ ++++++++                     dev_err(&pdev->dev,
++ ++++++++                             "memory mapped resource not required\n");
++ ++++++++                     return -ENODEV;
++ ++++++++             }
++ ++++++++     }
++ ++++++++
++ ++++++++     res_ctrl = platform_get_resource_byname(pdev,
++ ++++++++                     IORESOURCE_MEM, "qspi_ctrlmod");
++ ++++++++     if (res_ctrl == NULL) {
++ ++++++++             res_ctrl = platform_get_resource(pdev, IORESOURCE_MEM, 2);
++ ++++++++             if (res_ctrl == NULL) {
++ ++++++++                     dev_dbg(&pdev->dev,
++ ++++++++                             "control module resources not required\n");
++ ++++++++             }
++ ++++++++     }
           
                irq = platform_get_irq(pdev, 0);
                if (irq < 0) {
Simple merge