Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363195
b: refs/heads/master
c: 41ddcf6
h: refs/heads/master
i:
  363193: 7b548f8
  363191: 5ebaa4b
v: v3
  • Loading branch information
Jingoo Han authored and Greg Kroah-Hartman committed Apr 5, 2013
1 parent 8a530e5 commit 4cacbb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 2638953fcd6eeea27b4975c1cdd5e62e32758f8f
refs/heads/master: 41ddcf67b864343690bffd8029a882377c3ff50b
4 changes: 2 additions & 2 deletions trunk/drivers/misc/eeprom/at25.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ static int at25_probe(struct spi_device *spi)
mutex_init(&at25->lock);
at25->chip = chip;
at25->spi = spi_dev_get(spi);
dev_set_drvdata(&spi->dev, at25);
spi_set_drvdata(spi, at25);
at25->addrlen = addrlen;

/* Export the EEPROM bytes through sysfs, since that's convenient.
Expand Down Expand Up @@ -463,7 +463,7 @@ static int at25_remove(struct spi_device *spi)
{
struct at25_data *at25;

at25 = dev_get_drvdata(&spi->dev);
at25 = spi_get_drvdata(spi);
sysfs_remove_bin_file(&spi->dev.kobj, &at25->bin);
kfree(at25);
return 0;
Expand Down

0 comments on commit 4cacbb9

Please sign in to comment.