Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373238
b: refs/heads/master
c: 0c0d2ab
h: refs/heads/master
v: v3
  • Loading branch information
Jingoo Han authored and Samuel Ortiz committed Apr 9, 2013
1 parent be9fb36 commit 7981723
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: b99877f3f7e1c8b7e6d133b56c8bcea4e2f7be80
refs/heads/master: 0c0d2ab069fa668daeda4204580e359dba178169
6 changes: 3 additions & 3 deletions trunk/drivers/mfd/wm831x-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static int wm831x_spi_probe(struct spi_device *spi)
spi->bits_per_word = 16;
spi->mode = SPI_MODE_0;

dev_set_drvdata(&spi->dev, wm831x);
spi_set_drvdata(spi, wm831x);
wm831x->dev = &spi->dev;

wm831x->regmap = devm_regmap_init_spi(spi, &wm831x_regmap_config);
Expand All @@ -53,7 +53,7 @@ static int wm831x_spi_probe(struct spi_device *spi)

static int wm831x_spi_remove(struct spi_device *spi)
{
struct wm831x *wm831x = dev_get_drvdata(&spi->dev);
struct wm831x *wm831x = spi_get_drvdata(spi);

wm831x_device_exit(wm831x);

Expand All @@ -69,7 +69,7 @@ static int wm831x_spi_suspend(struct device *dev)

static void wm831x_spi_shutdown(struct spi_device *spi)
{
struct wm831x *wm831x = dev_get_drvdata(&spi->dev);
struct wm831x *wm831x = spi_get_drvdata(spi);

wm831x_device_shutdown(wm831x);
}
Expand Down

0 comments on commit 7981723

Please sign in to comment.