aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-01-14 18:24:37 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2011-01-14 18:24:37 -0500
commit8473dbb43db92fa8de7c24d1973aaf1e0276a89f (patch)
tree3fca0a8ab3cea5c41098e0f04fae690cce38f70e /drivers
parent7cb3920a6529df7f54487abe973b903b8239e901 (diff)
parent94a1b6d8eb903818773ad24fe48529b0d295052d (diff)
Merge branch 'next-spi' of git://git.secretlab.ca/git/linux-2.6
* 'next-spi' of git://git.secretlab.ca/git/linux-2.6: spi/amba-pl022: fixing compilation warning. spi: Enable SPI driver for S5P6440 and S5P6450 mmc: sdhci-of: fix build on non-powerpc platforms spi/imx: Add i.MX53 support spi/dw_spi: don't treat NULL clk as an error spi: tegra: don't treat NULL clk as an error
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/sdhci-of-core.c9
-rw-r--r--drivers/spi/Kconfig8
-rw-r--r--drivers/spi/amba-pl022.c2
-rw-r--r--drivers/spi/dw_spi_mmio.c5
-rw-r--r--drivers/spi/spi_imx.c6
-rw-r--r--drivers/spi/spi_tegra.c2
6 files changed, 24 insertions, 8 deletions
diff --git a/drivers/mmc/host/sdhci-of-core.c b/drivers/mmc/host/sdhci-of-core.c
index fa19d849a920..dd84124f4209 100644
--- a/drivers/mmc/host/sdhci-of-core.c
+++ b/drivers/mmc/host/sdhci-of-core.c
@@ -13,6 +13,7 @@
13 * your option) any later version. 13 * your option) any later version.
14 */ 14 */
15 15
16#include <linux/err.h>
16#include <linux/module.h> 17#include <linux/module.h>
17#include <linux/init.h> 18#include <linux/init.h>
18#include <linux/io.h> 19#include <linux/io.h>
@@ -20,8 +21,12 @@
20#include <linux/delay.h> 21#include <linux/delay.h>
21#include <linux/of.h> 22#include <linux/of.h>
22#include <linux/of_platform.h> 23#include <linux/of_platform.h>
24#include <linux/of_address.h>
25#include <linux/of_irq.h>
23#include <linux/mmc/host.h> 26#include <linux/mmc/host.h>
27#ifdef CONFIG_PPC
24#include <asm/machdep.h> 28#include <asm/machdep.h>
29#endif
25#include "sdhci-of.h" 30#include "sdhci-of.h"
26#include "sdhci.h" 31#include "sdhci.h"
27 32
@@ -112,7 +117,11 @@ static bool __devinit sdhci_of_wp_inverted(struct device_node *np)
112 return true; 117 return true;
113 118
114 /* Old device trees don't have the wp-inverted property. */ 119 /* Old device trees don't have the wp-inverted property. */
120#ifdef CONFIG_PPC
115 return machine_is(mpc837x_rdb) || machine_is(mpc837x_mds); 121 return machine_is(mpc837x_rdb) || machine_is(mpc837x_mds);
122#else
123 return false;
124#endif
116} 125}
117 126
118static int __devinit sdhci_of_probe(struct platform_device *ofdev, 127static int __devinit sdhci_of_probe(struct platform_device *ofdev,
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index 1906840c1113..13bfa9d48082 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -156,10 +156,10 @@ config SPI_IMX_VER_0_4
156 def_bool y if ARCH_MX31 156 def_bool y if ARCH_MX31
157 157
158config SPI_IMX_VER_0_7 158config SPI_IMX_VER_0_7
159 def_bool y if ARCH_MX25 || ARCH_MX35 || ARCH_MX51 159 def_bool y if ARCH_MX25 || ARCH_MX35 || ARCH_MX51 || ARCH_MX53
160 160
161config SPI_IMX_VER_2_3 161config SPI_IMX_VER_2_3
162 def_bool y if ARCH_MX51 162 def_bool y if ARCH_MX51 || ARCH_MX53
163 163
164config SPI_IMX 164config SPI_IMX
165 tristate "Freescale i.MX SPI controllers" 165 tristate "Freescale i.MX SPI controllers"
@@ -310,8 +310,8 @@ config SPI_S3C24XX_GPIO
310 310
311config SPI_S3C64XX 311config SPI_S3C64XX
312 tristate "Samsung S3C64XX series type SPI" 312 tristate "Samsung S3C64XX series type SPI"
313 depends on ARCH_S3C64XX && EXPERIMENTAL 313 depends on (ARCH_S3C64XX || ARCH_S5P64X0)
314 select S3C64XX_DMA 314 select S3C64XX_DMA if ARCH_S3C64XX
315 help 315 help
316 SPI driver for Samsung S3C64XX and newer SoCs. 316 SPI driver for Samsung S3C64XX and newer SoCs.
317 317
diff --git a/drivers/spi/amba-pl022.c b/drivers/spi/amba-pl022.c
index a2a5921c730a..71a1219a995d 100644
--- a/drivers/spi/amba-pl022.c
+++ b/drivers/spi/amba-pl022.c
@@ -1795,7 +1795,7 @@ static int pl022_setup(struct spi_device *spi)
1795{ 1795{
1796 struct pl022_config_chip const *chip_info; 1796 struct pl022_config_chip const *chip_info;
1797 struct chip_data *chip; 1797 struct chip_data *chip;
1798 struct ssp_clock_params clk_freq; 1798 struct ssp_clock_params clk_freq = {0, };
1799 int status = 0; 1799 int status = 0;
1800 struct pl022 *pl022 = spi_master_get_devdata(spi->master); 1800 struct pl022 *pl022 = spi_master_get_devdata(spi->master);
1801 unsigned int bits = spi->bits_per_word; 1801 unsigned int bits = spi->bits_per_word;
diff --git a/drivers/spi/dw_spi_mmio.c b/drivers/spi/dw_spi_mmio.c
index db35bd9c1b24..2fa012c109bc 100644
--- a/drivers/spi/dw_spi_mmio.c
+++ b/drivers/spi/dw_spi_mmio.c
@@ -9,6 +9,7 @@
9 */ 9 */
10 10
11#include <linux/clk.h> 11#include <linux/clk.h>
12#include <linux/err.h>
12#include <linux/interrupt.h> 13#include <linux/interrupt.h>
13#include <linux/platform_device.h> 14#include <linux/platform_device.h>
14#include <linux/slab.h> 15#include <linux/slab.h>
@@ -68,8 +69,8 @@ static int __devinit dw_spi_mmio_probe(struct platform_device *pdev)
68 } 69 }
69 70
70 dwsmmio->clk = clk_get(&pdev->dev, NULL); 71 dwsmmio->clk = clk_get(&pdev->dev, NULL);
71 if (!dwsmmio->clk) { 72 if (IS_ERR(dwsmmio->clk)) {
72 ret = -ENODEV; 73 ret = PTR_ERR(dwsmmio->clk);
73 goto err_irq; 74 goto err_irq;
74 } 75 }
75 clk_enable(dwsmmio->clk); 76 clk_enable(dwsmmio->clk);
diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c
index 9469564e6888..1cf9d5faabf4 100644
--- a/drivers/spi/spi_imx.c
+++ b/drivers/spi/spi_imx.c
@@ -743,6 +743,12 @@ static struct platform_device_id spi_imx_devtype[] = {
743 .name = "imx51-ecspi", 743 .name = "imx51-ecspi",
744 .driver_data = SPI_IMX_VER_2_3, 744 .driver_data = SPI_IMX_VER_2_3,
745 }, { 745 }, {
746 .name = "imx53-cspi",
747 .driver_data = SPI_IMX_VER_0_7,
748 }, {
749 .name = "imx53-ecspi",
750 .driver_data = SPI_IMX_VER_2_3,
751 }, {
746 /* sentinel */ 752 /* sentinel */
747 } 753 }
748}; 754};
diff --git a/drivers/spi/spi_tegra.c b/drivers/spi/spi_tegra.c
index bb7df02a5472..891e5909038c 100644
--- a/drivers/spi/spi_tegra.c
+++ b/drivers/spi/spi_tegra.c
@@ -513,7 +513,7 @@ static int __init spi_tegra_probe(struct platform_device *pdev)
513 } 513 }
514 514
515 tspi->clk = clk_get(&pdev->dev, NULL); 515 tspi->clk = clk_get(&pdev->dev, NULL);
516 if (IS_ERR_OR_NULL(tspi->clk)) { 516 if (IS_ERR(tspi->clk)) {
517 dev_err(&pdev->dev, "can not get clock\n"); 517 dev_err(&pdev->dev, "can not get clock\n");
518 ret = PTR_ERR(tspi->clk); 518 ret = PTR_ERR(tspi->clk);
519 goto err2; 519 goto err2;