diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-04-06 02:44:30 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-09 06:18:16 -0400 |
commit | e9642d5e162c2a219f770cf4a52b4c6b622879bb (patch) | |
tree | d9d3b72ef5c553da76ed53cbd2b67fccaec57b08 /drivers/mfd | |
parent | a720c3053322231d6fc6c5e7459ea1ea068904c4 (diff) |
mfd: arizona: Use spi_get_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: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/arizona-spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/arizona-spi.c b/drivers/mfd/arizona-spi.c index 1b9fdd698b03..b57e642d2b4a 100644 --- a/drivers/mfd/arizona-spi.c +++ b/drivers/mfd/arizona-spi.c | |||
@@ -67,7 +67,7 @@ static int arizona_spi_probe(struct spi_device *spi) | |||
67 | 67 | ||
68 | static int arizona_spi_remove(struct spi_device *spi) | 68 | static int arizona_spi_remove(struct spi_device *spi) |
69 | { | 69 | { |
70 | struct arizona *arizona = dev_get_drvdata(&spi->dev); | 70 | struct arizona *arizona = spi_get_drvdata(spi); |
71 | arizona_dev_exit(arizona); | 71 | arizona_dev_exit(arizona); |
72 | return 0; | 72 | return 0; |
73 | } | 73 | } |