Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363068
b: refs/heads/master
c: debe597
h: refs/heads/master
v: v3
  • Loading branch information
Jingoo Han authored and Guenter Roeck committed Apr 8, 2013
1 parent 056edac commit 5732939
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: 4aa3eb4cbe0e6f307f7b4d37a8475bace51b773b
refs/heads/master: debe597cca61aacf9e17a4dc155aa84446ab4bf0
4 changes: 2 additions & 2 deletions trunk/drivers/hwmon/ad7314.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static int ad7314_probe(struct spi_device *spi_dev)
if (chip == NULL)
return -ENOMEM;

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

ret = sysfs_create_group(&spi_dev->dev.kobj, &ad7314_group);
if (ret < 0)
Expand All @@ -137,7 +137,7 @@ static int ad7314_probe(struct spi_device *spi_dev)

static int ad7314_remove(struct spi_device *spi_dev)
{
struct ad7314_data *chip = dev_get_drvdata(&spi_dev->dev);
struct ad7314_data *chip = spi_get_drvdata(spi_dev);

hwmon_device_unregister(chip->hwmon_dev);
sysfs_remove_group(&spi_dev->dev.kobj, &ad7314_group);
Expand Down

0 comments on commit 5732939

Please sign in to comment.