aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-04-05 16:36:47 -0400
committerDavid S. Miller <davem@davemloft.net>2013-04-07 16:48:19 -0400
commitd60c5d205094218bf7e6277ee9f8ddf90f8c1624 (patch)
tree9364bb71e0f3a248852c690de286ac4afaa90898 /drivers/net/wireless/p54
parentc49b05ac2cb2c0176e4ddb17ccd81bb28eb95cf3 (diff)
net: wireless: p54spi: 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>
Diffstat (limited to 'drivers/net/wireless/p54')
-rw-r--r--drivers/net/wireless/p54/p54spi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/p54/p54spi.c b/drivers/net/wireless/p54/p54spi.c
index 4fd49a007b51..978e7eb26567 100644
--- a/drivers/net/wireless/p54/p54spi.c
+++ b/drivers/net/wireless/p54/p54spi.c
@@ -396,7 +396,7 @@ static int p54spi_rx(struct p54s_priv *priv)
396static irqreturn_t p54spi_interrupt(int irq, void *config) 396static irqreturn_t p54spi_interrupt(int irq, void *config)
397{ 397{
398 struct spi_device *spi = config; 398 struct spi_device *spi = config;
399 struct p54s_priv *priv = dev_get_drvdata(&spi->dev); 399 struct p54s_priv *priv = spi_get_drvdata(spi);
400 400
401 ieee80211_queue_work(priv->hw, &priv->work); 401 ieee80211_queue_work(priv->hw, &priv->work);
402 402
@@ -609,7 +609,7 @@ static int p54spi_probe(struct spi_device *spi)
609 609
610 priv = hw->priv; 610 priv = hw->priv;
611 priv->hw = hw; 611 priv->hw = hw;
612 dev_set_drvdata(&spi->dev, priv); 612 spi_set_drvdata(spi, priv);
613 priv->spi = spi; 613 priv->spi = spi;
614 614
615 spi->bits_per_word = 16; 615 spi->bits_per_word = 16;
@@ -685,7 +685,7 @@ err_free:
685 685
686static int p54spi_remove(struct spi_device *spi) 686static int p54spi_remove(struct spi_device *spi)
687{ 687{
688 struct p54s_priv *priv = dev_get_drvdata(&spi->dev); 688 struct p54s_priv *priv = spi_get_drvdata(spi);
689 689
690 p54_unregister_common(priv->hw); 690 p54_unregister_common(priv->hw);
691 691