Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373625
b: refs/heads/master
c: 6c0cf42
h: refs/heads/master
i:
  373623: 753ff33
v: v3
  • Loading branch information
Jingoo Han authored and Linus Walleij committed Mar 27, 2013
1 parent b60106e commit d19ae03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 30db2bd1c88cedf73e1eb753225249130cc00970
refs/heads/master: 6c0cf42be3f8e1039d3f31c2e8e16b4d375527c7
8 changes: 4 additions & 4 deletions trunk/drivers/gpio/gpio-74x164.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static int gen_74x164_probe(struct spi_device *spi)

mutex_init(&chip->lock);

dev_set_drvdata(&spi->dev, chip);
spi_set_drvdata(spi, chip);

chip->spi = spi;

Expand Down Expand Up @@ -176,7 +176,7 @@ static int gen_74x164_probe(struct spi_device *spi)
return ret;

exit_destroy:
dev_set_drvdata(&spi->dev, NULL);
spi_set_drvdata(spi, NULL);
mutex_destroy(&chip->lock);
return ret;
}
Expand All @@ -186,11 +186,11 @@ static int gen_74x164_remove(struct spi_device *spi)
struct gen_74x164_chip *chip;
int ret;

chip = dev_get_drvdata(&spi->dev);
chip = spi_get_drvdata(spi);
if (chip == NULL)
return -ENODEV;

dev_set_drvdata(&spi->dev, NULL);
spi_set_drvdata(spi, NULL);

ret = gpiochip_remove(&chip->gpio_chip);
if (!ret)
Expand Down

0 comments on commit d19ae03

Please sign in to comment.