Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] s3c24xx: fix spi driver with CONFIG_PM

Fix compile bug with the S3C24XX SPI driver when CONFIG_PM is set.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Ben Dooks and committed by
Linus Torvalds
ac88bcff 0fba3a1f

+2 -2
+2 -2
drivers/spi/spi_s3c24xx.c
··· 405 405 406 406 static int s3c24xx_spi_suspend(struct platform_device *pdev, pm_message_t msg) 407 407 { 408 - struct s3c24xx_spi *hw = platform_get_drvdata(dev); 408 + struct s3c24xx_spi *hw = platform_get_drvdata(pdev); 409 409 410 410 clk_disable(hw->clk); 411 411 return 0; ··· 413 413 414 414 static int s3c24xx_spi_resume(struct platform_device *pdev) 415 415 { 416 - struct s3c24xx_spi *hw = platform_get_drvdata(dev); 416 + struct s3c24xx_spi *hw = platform_get_drvdata(pdev); 417 417 418 418 clk_enable(hw->clk); 419 419 return 0;