Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365619
b: refs/heads/master
c: 1d80d0f
h: refs/heads/master
i:
  365617: ef60e39
  365615: b2907d4
v: v3
  • Loading branch information
Jingoo Han authored and Linus Torvalds committed Apr 30, 2013
1 parent e131e18 commit e278c35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: ba3601a99fde549707f5f869c977c0072fee04e1
refs/heads/master: 1d80d0fdf7e13f5f1f769f5279803c887be07693
6 changes: 2 additions & 4 deletions trunk/drivers/video/backlight/platform_lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static int platform_lcd_remove(struct platform_device *pdev)
return 0;
}

#ifdef CONFIG_PM
#ifdef CONFIG_PM_SLEEP
static int platform_lcd_suspend(struct device *dev)
{
struct platform_lcd *plcd = dev_get_drvdata(dev);
Expand All @@ -141,10 +141,10 @@ static int platform_lcd_resume(struct device *dev)

return 0;
}
#endif

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

#ifdef CONFIG_OF
static const struct of_device_id platform_lcd_of_match[] = {
Expand All @@ -158,9 +158,7 @@ static struct platform_driver platform_lcd_driver = {
.driver = {
.name = "platform-lcd",
.owner = THIS_MODULE,
#ifdef CONFIG_PM
.pm = &platform_lcd_pm_ops,
#endif
.of_match_table = of_match_ptr(platform_lcd_of_match),
},
.probe = platform_lcd_probe,
Expand Down

0 comments on commit e278c35

Please sign in to comment.