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: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Ben Dooks and committed by Linus Torvalds e39ea8a2 4e253d23

+1 -1
+1 -1
drivers/spi/spi_s3c24xx_gpio.c
··· 34 35 static inline struct s3c2410_spigpio *spidev_to_sg(struct spi_device *spi) 36 { 37 - return spi->controller_data; 38 } 39 40 static inline void setsck(struct spi_device *dev, int on)
··· 34 35 static inline struct s3c2410_spigpio *spidev_to_sg(struct spi_device *spi) 36 { 37 + return spi_master_get_devdata(spi->master); 38 } 39 40 static inline void setsck(struct spi_device *dev, int on)