Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac88bcff authored by Ben Dooks's avatar Ben Dooks Committed by Linus Torvalds
Browse files

[PATCH] s3c24xx: fix spi driver with CONFIG_PM



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

Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 0fba3a1f
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -405,7 +405,7 @@ static int s3c24xx_spi_remove(struct platform_device *dev)


static int s3c24xx_spi_suspend(struct platform_device *pdev, pm_message_t msg)
static int s3c24xx_spi_suspend(struct platform_device *pdev, pm_message_t msg)
{
{
	struct s3c24xx_spi *hw = platform_get_drvdata(dev);
	struct s3c24xx_spi *hw = platform_get_drvdata(pdev);


	clk_disable(hw->clk);
	clk_disable(hw->clk);
	return 0;
	return 0;
@@ -413,7 +413,7 @@ static int s3c24xx_spi_suspend(struct platform_device *pdev, pm_message_t msg)


static int s3c24xx_spi_resume(struct platform_device *pdev)
static int s3c24xx_spi_resume(struct platform_device *pdev)
{
{
	struct s3c24xx_spi *hw = platform_get_drvdata(dev);
	struct s3c24xx_spi *hw = platform_get_drvdata(pdev);


	clk_enable(hw->clk);
	clk_enable(hw->clk);
	return 0;
	return 0;