spi: fix spi_s3c24xx_gpio device handle lookup
authorBen Dooks <ben-linux@fluff.org>
Mon, 1 Dec 2008 21:13:56 +0000 (13:13 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Dec 2008 03:55:24 +0000 (19:55 -0800)
commite39ea8a2def1fcb203ed0183317124348962e351
tree1ddef2aacf3149111ef12cd4f0e4e4b1712c7a34
parent4e253d23003b54c88d0919d6088be74f00eec3c7
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>
drivers/spi/spi_s3c24xx_gpio.c