diff options
author | Jingoo Han | 2013-05-23 12:20:40 +0200 |
---|---|---|
committer | Mark Brown | 2013-05-23 16:09:55 +0200 |
commit | 24b5a82cf5709a4bc577f42fdaa61b23a7f58f08 (patch) | |
tree | 39c17c904a2ac67c8b76b9edccf1da00f3620998 /drivers/spi/spi-fsl-spi.c | |
parent | Linux 3.10-rc2 (diff) | |
download | kernel-qcow2-linux-24b5a82cf5709a4bc577f42fdaa61b23a7f58f08.tar.gz kernel-qcow2-linux-24b5a82cf5709a4bc577f42fdaa61b23a7f58f08.tar.xz kernel-qcow2-linux-24b5a82cf5709a4bc577f42fdaa61b23a7f58f08.zip |
spi: use platform_{get,set}_drvdata()
Use the wrapper functions for getting and setting the driver data using
platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev,
so we can directly pass a struct platform_device.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-fsl-spi.c')
-rw-r--r-- | drivers/spi/spi-fsl-spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-fsl-spi.c b/drivers/spi/spi-fsl-spi.c index 14e202ee7036..41e89c3e3edc 100644 --- a/drivers/spi/spi-fsl-spi.c +++ b/drivers/spi/spi-fsl-spi.c @@ -853,7 +853,7 @@ err: static int of_fsl_spi_remove(struct platform_device *ofdev) { - struct spi_master *master = dev_get_drvdata(&ofdev->dev); + struct spi_master *master = platform_get_drvdata(ofdev); struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(master); int ret; |