diff options
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/wm831x-spi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mfd/wm831x-spi.c b/drivers/mfd/wm831x-spi.c index 4e70e157a909..e7ed14f661d8 100644 --- a/drivers/mfd/wm831x-spi.c +++ b/drivers/mfd/wm831x-spi.c | |||
@@ -37,7 +37,7 @@ static int wm831x_spi_probe(struct spi_device *spi) | |||
37 | spi->bits_per_word = 16; | 37 | spi->bits_per_word = 16; |
38 | spi->mode = SPI_MODE_0; | 38 | spi->mode = SPI_MODE_0; |
39 | 39 | ||
40 | dev_set_drvdata(&spi->dev, wm831x); | 40 | spi_set_drvdata(spi, wm831x); |
41 | wm831x->dev = &spi->dev; | 41 | wm831x->dev = &spi->dev; |
42 | 42 | ||
43 | wm831x->regmap = devm_regmap_init_spi(spi, &wm831x_regmap_config); | 43 | wm831x->regmap = devm_regmap_init_spi(spi, &wm831x_regmap_config); |
@@ -53,7 +53,7 @@ static int wm831x_spi_probe(struct spi_device *spi) | |||
53 | 53 | ||
54 | static int wm831x_spi_remove(struct spi_device *spi) | 54 | static int wm831x_spi_remove(struct spi_device *spi) |
55 | { | 55 | { |
56 | struct wm831x *wm831x = dev_get_drvdata(&spi->dev); | 56 | struct wm831x *wm831x = spi_get_drvdata(spi); |
57 | 57 | ||
58 | wm831x_device_exit(wm831x); | 58 | wm831x_device_exit(wm831x); |
59 | 59 | ||
@@ -69,7 +69,7 @@ static int wm831x_spi_suspend(struct device *dev) | |||
69 | 69 | ||
70 | static void wm831x_spi_shutdown(struct spi_device *spi) | 70 | static void wm831x_spi_shutdown(struct spi_device *spi) |
71 | { | 71 | { |
72 | struct wm831x *wm831x = dev_get_drvdata(&spi->dev); | 72 | struct wm831x *wm831x = spi_get_drvdata(spi); |
73 | 73 | ||
74 | wm831x_device_shutdown(wm831x); | 74 | wm831x_device_shutdown(wm831x); |
75 | } | 75 | } |