Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295171
b: refs/heads/master
c: 67a6727
h: refs/heads/master
i:
  295169: 20350bb
  295167: d89f356
v: v3
  • Loading branch information
Jingoo Han authored and Linus Torvalds committed Mar 23, 2012
1 parent 4ea7dbd commit 6ccc90b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 35c1682cc069fc1f677012d3170757135e246b39
refs/heads/master: 67a67272e890c79372bc0e2e555071f903d864a7
19 changes: 10 additions & 9 deletions trunk/drivers/video/backlight/platform_lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,39 +121,40 @@ static int __devexit platform_lcd_remove(struct platform_device *pdev)
}

#ifdef CONFIG_PM
static int platform_lcd_suspend(struct platform_device *pdev, pm_message_t st)
static int platform_lcd_suspend(struct device *dev)
{
struct platform_lcd *plcd = platform_get_drvdata(pdev);
struct platform_lcd *plcd = dev_get_drvdata(dev);

plcd->suspended = 1;
platform_lcd_set_power(plcd->lcd, plcd->power);

return 0;
}

static int platform_lcd_resume(struct platform_device *pdev)
static int platform_lcd_resume(struct device *dev)
{
struct platform_lcd *plcd = platform_get_drvdata(pdev);
struct platform_lcd *plcd = dev_get_drvdata(dev);

plcd->suspended = 0;
platform_lcd_set_power(plcd->lcd, plcd->power);

return 0;
}
#else
#define platform_lcd_suspend NULL
#define platform_lcd_resume NULL

static SIMPLE_DEV_PM_OPS(platform_lcd_pm_ops, platform_lcd_suspend,
platform_lcd_resume);
#endif

static struct platform_driver platform_lcd_driver = {
.driver = {
.name = "platform-lcd",
.owner = THIS_MODULE,
#ifdef CONFIG_PM
.pm = &platform_lcd_pm_ops,
#endif
},
.probe = platform_lcd_probe,
.remove = __devexit_p(platform_lcd_remove),
.suspend = platform_lcd_suspend,
.resume = platform_lcd_resume,
};

module_platform_driver(platform_lcd_driver);
Expand Down

0 comments on commit 6ccc90b

Please sign in to comment.