summaryrefslogtreecommitdiff
path: root/drivers/spi/spi_s3c24xx_gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi_s3c24xx_gpio.c')
-rw-r--r--drivers/spi/spi_s3c24xx_gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_s3c24xx_gpio.c b/drivers/spi/spi_s3c24xx_gpio.c
index cc1f647f579b..8bb2b4ee3e50 100644
--- a/drivers/spi/spi_s3c24xx_gpio.c
+++ b/drivers/spi/spi_s3c24xx_gpio.c
@@ -34,7 +34,7 @@ struct s3c2410_spigpio {
static inline struct s3c2410_spigpio *spidev_to_sg(struct spi_device *spi)
{
- return spi->controller_data;
+ return spi_master_get_devdata(spi->master);
}
static inline void setsck(struct spi_device *dev, int on)