Commit e39ea8a2 authored by Ben Dooks's avatar Ben Dooks Committed by Linus Torvalds

spi: fix spi_s3c24xx_gpio device handle lookup

The spidev_to_sg() call in spi_s3c24xx_gpio.c was using the wrong method
to convert the spi device into the private data for the driver.  Fix this
by using spi_master_get_devdata.
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4e253d23
...@@ -34,7 +34,7 @@ struct s3c2410_spigpio { ...@@ -34,7 +34,7 @@ struct s3c2410_spigpio {
static inline struct s3c2410_spigpio *spidev_to_sg(struct spi_device *spi) 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) static inline void setsck(struct spi_device *dev, int on)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment