]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branches 'spi/topic/ath79', 'spi/topic/atmel', 'spi/topic/bcm28...
authorMark Brown <broonie@linaro.org>
Thu, 19 Dec 2013 13:48:40 +0000 (13:48 +0000)
committerMark Brown <broonie@linaro.org>
Thu, 19 Dec 2013 13:48:40 +0000 (13:48 +0000)
1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28 
drivers/spi/Kconfig
drivers/spi/spi-bcm63xx.c
drivers/spi/spi-mpc512x-psc.c
drivers/spi/spi-sh-msiof.c
drivers/spi/spi-ti-qspi.c
drivers/spi/spi-txx9.c

Simple merge
Simple merge
Simple merge
Simple merge
index 4396bd44854063d9488cfd5dadc863c40c9e1dbf,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,4396bd44854063d9488cfd5dadc863c40c9e1dbf,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,1211b663c8142440e2c9f14af3d81aeddd3522f4,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c,0b71270fbf67ba671dd43f116db48de30076514c..9ae846558f5fb2c7c6a05cb886877869c2d90c9b
                                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