Skip to content

Commit

Permalink
[PATCH] s3c24xx: fix spi driver with CONFIG_PM
Browse files Browse the repository at this point in the history
Fix compile bug with the S3C24XX SPI driver when CONFIG_PM is set.

Signed-off-by: Ben Dooks <[email protected]>
Cc: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Ben Dooks authored and Linus Torvalds committed May 26, 2006
1 parent 0fba3a1 commit ac88bcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/spi/spi_s3c24xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,15 +405,15 @@ static int s3c24xx_spi_remove(struct platform_device *dev)

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);
return 0;
}

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);
return 0;
Expand Down

0 comments on commit ac88bcf

Please sign in to comment.