Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88353
b: refs/heads/master
c: 50f426b
h: refs/heads/master
i:
  88351: 977ea2f
v: v3
  • Loading branch information
Ben Dooks authored and Linus Torvalds committed Apr 16, 2008
1 parent 4f88824 commit 8158863
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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: 4bb5eba06b4bc57e30b0f6336c9907e85c395197
refs/heads/master: 50f426b55d919dd017af35bb6a08753d1f262920
13 changes: 7 additions & 6 deletions trunk/drivers/spi/spi_s3c24xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ static irqreturn_t s3c24xx_spi_irq(int irq, void *dev)

static int __init s3c24xx_spi_probe(struct platform_device *pdev)
{
struct s3c2410_spi_info *pdata;
struct s3c24xx_spi *hw;
struct spi_master *master;
struct resource *res;
Expand All @@ -254,10 +255,10 @@ static int __init s3c24xx_spi_probe(struct platform_device *pdev)
memset(hw, 0, sizeof(struct s3c24xx_spi));

hw->master = spi_master_get(master);
hw->pdata = pdev->dev.platform_data;
hw->pdata = pdata = pdev->dev.platform_data;
hw->dev = &pdev->dev;

if (hw->pdata == NULL) {
if (pdata == NULL) {
dev_err(&pdev->dev, "No platform data supplied\n");
err = -ENOENT;
goto err_no_pdata;
Expand Down Expand Up @@ -333,13 +334,13 @@ static int __init s3c24xx_spi_probe(struct platform_device *pdev)

/* setup any gpio we can */

if (!hw->pdata->set_cs) {
if (!pdata->set_cs) {
hw->set_cs = s3c24xx_spi_gpiocs;

s3c2410_gpio_setpin(hw->pdata->pin_cs, 1);
s3c2410_gpio_cfgpin(hw->pdata->pin_cs, S3C2410_GPIO_OUTPUT);
s3c2410_gpio_setpin(pdata->pin_cs, 1);
s3c2410_gpio_cfgpin(pdata->pin_cs, S3C2410_GPIO_OUTPUT);
} else
hw->set_cs = hw->pdata->set_cs;
hw->set_cs = pdata->set_cs;

/* register our spi controller */

Expand Down

0 comments on commit 8158863

Please sign in to comment.