Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231274
b: refs/heads/master
c: 42a9fa9
h: refs/heads/master
v: v3
  • Loading branch information
Grant Likely committed Jan 14, 2011
1 parent 5d3269f commit 7241fca
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c289ef41431144a538b5fb5f94fc83c81b3020e2
refs/heads/master: 42a9fa9957e369240936891c9a521ab671eed4e7
8 changes: 4 additions & 4 deletions trunk/drivers/spi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ config SPI_IMX_VER_0_4
def_bool y if ARCH_MX31

config SPI_IMX_VER_0_7
def_bool y if ARCH_MX25 || ARCH_MX35 || ARCH_MX51
def_bool y if ARCH_MX25 || ARCH_MX35 || ARCH_MX51 || ARCH_MX53

config SPI_IMX_VER_2_3
def_bool y if ARCH_MX51
def_bool y if ARCH_MX51 || ARCH_MX53

config SPI_IMX
tristate "Freescale i.MX SPI controllers"
Expand Down Expand Up @@ -310,8 +310,8 @@ config SPI_S3C24XX_GPIO

config SPI_S3C64XX
tristate "Samsung S3C64XX series type SPI"
depends on ARCH_S3C64XX && EXPERIMENTAL
select S3C64XX_DMA
depends on (ARCH_S3C64XX || ARCH_S5P64X0)
select S3C64XX_DMA if ARCH_S3C64XX
help
SPI driver for Samsung S3C64XX and newer SoCs.

Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/spi/dw_spi_mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include <linux/clk.h>
#include <linux/err.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
Expand Down Expand Up @@ -68,8 +69,8 @@ static int __devinit dw_spi_mmio_probe(struct platform_device *pdev)
}

dwsmmio->clk = clk_get(&pdev->dev, NULL);
if (!dwsmmio->clk) {
ret = -ENODEV;
if (IS_ERR(dwsmmio->clk)) {
ret = PTR_ERR(dwsmmio->clk);
goto err_irq;
}
clk_enable(dwsmmio->clk);
Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/spi/spi_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,12 @@ static struct platform_device_id spi_imx_devtype[] = {
}, {
.name = "imx51-ecspi",
.driver_data = SPI_IMX_VER_2_3,
}, {
.name = "imx53-cspi",
.driver_data = SPI_IMX_VER_0_7,
}, {
.name = "imx53-ecspi",
.driver_data = SPI_IMX_VER_2_3,
}, {
/* sentinel */
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/spi/spi_tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ static int __init spi_tegra_probe(struct platform_device *pdev)
}

tspi->clk = clk_get(&pdev->dev, NULL);
if (IS_ERR_OR_NULL(tspi->clk)) {
if (IS_ERR(tspi->clk)) {
dev_err(&pdev->dev, "can not get clock\n");
ret = PTR_ERR(tspi->clk);
goto err2;
Expand Down

0 comments on commit 7241fca

Please sign in to comment.