Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373626
b: refs/heads/master
c: 493294d
h: refs/heads/master
v: v3
  • Loading branch information
Jingoo Han authored and Linus Walleij committed Mar 27, 2013
1 parent d19ae03 commit de94261
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: 6c0cf42be3f8e1039d3f31c2e8e16b4d375527c7
refs/heads/master: 493294d4a82470c44bf7ac9b21b901fb3e56dc3b
8 changes: 4 additions & 4 deletions trunk/drivers/gpio/gpio-mc33880.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static int mc33880_probe(struct spi_device *spi)

mutex_init(&mc->lock);

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

mc->spi = spi;

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

exit_destroy:
dev_set_drvdata(&spi->dev, NULL);
spi_set_drvdata(spi, NULL);
mutex_destroy(&mc->lock);
return ret;
}
Expand All @@ -152,11 +152,11 @@ static int mc33880_remove(struct spi_device *spi)
struct mc33880 *mc;
int ret;

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

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

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

0 comments on commit de94261

Please sign in to comment.