diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-04-05 16:36:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-07 16:48:19 -0400 |
commit | c49b05ac2cb2c0176e4ddb17ccd81bb28eb95cf3 (patch) | |
tree | a3b73dc1ab75990a10a512e22d42f05e5c2c593b | |
parent | 5743756161518f279ad0bd21437713f7bc3f0a81 (diff) |
net: wireless: wl1251: use spi_get_drvdata() and spi_set_drvdata()
Use the wrapper functions for getting and setting the driver data using
spi_device instead of using dev_{get|set}_drvdata with &spi->dev, so we
can directly pass a struct spi_device.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/wireless/ti/wl1251/spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wl1251/spi.c b/drivers/net/wireless/ti/wl1251/spi.c index 3b266d3231a3..4c67c2f9ea71 100644 --- a/drivers/net/wireless/ti/wl1251/spi.c +++ b/drivers/net/wireless/ti/wl1251/spi.c | |||
@@ -257,7 +257,7 @@ static int wl1251_spi_probe(struct spi_device *spi) | |||
257 | wl = hw->priv; | 257 | wl = hw->priv; |
258 | 258 | ||
259 | SET_IEEE80211_DEV(hw, &spi->dev); | 259 | SET_IEEE80211_DEV(hw, &spi->dev); |
260 | dev_set_drvdata(&spi->dev, wl); | 260 | spi_set_drvdata(spi, wl); |
261 | wl->if_priv = spi; | 261 | wl->if_priv = spi; |
262 | wl->if_ops = &wl1251_spi_ops; | 262 | wl->if_ops = &wl1251_spi_ops; |
263 | 263 | ||
@@ -311,7 +311,7 @@ static int wl1251_spi_probe(struct spi_device *spi) | |||
311 | 311 | ||
312 | static int wl1251_spi_remove(struct spi_device *spi) | 312 | static int wl1251_spi_remove(struct spi_device *spi) |
313 | { | 313 | { |
314 | struct wl1251 *wl = dev_get_drvdata(&spi->dev); | 314 | struct wl1251 *wl = spi_get_drvdata(spi); |
315 | 315 | ||
316 | free_irq(wl->irq, wl); | 316 | free_irq(wl->irq, wl); |
317 | wl1251_free_hw(wl); | 317 | wl1251_free_hw(wl); |