mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 09:43:59 +08:00
drivers/video/backlight/platform_lcd.c: remove unnecessary ifdefs
When the macro such as SIMPLE_DEV_PM_OPS is used, there is no need to use '#ifdef CONFIG_PM' to prevent build error. Thus, this patch removes unnecessary ifdefs. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
ba3601a99f
commit
1d80d0fdf7
@ -121,7 +121,7 @@ static int platform_lcd_remove(struct platform_device *pdev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM_SLEEP
|
||||||
static int platform_lcd_suspend(struct device *dev)
|
static int platform_lcd_suspend(struct device *dev)
|
||||||
{
|
{
|
||||||
struct platform_lcd *plcd = dev_get_drvdata(dev);
|
struct platform_lcd *plcd = dev_get_drvdata(dev);
|
||||||
@ -141,10 +141,10 @@ static int platform_lcd_resume(struct device *dev)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static SIMPLE_DEV_PM_OPS(platform_lcd_pm_ops, platform_lcd_suspend,
|
static SIMPLE_DEV_PM_OPS(platform_lcd_pm_ops, platform_lcd_suspend,
|
||||||
platform_lcd_resume);
|
platform_lcd_resume);
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_OF
|
#ifdef CONFIG_OF
|
||||||
static const struct of_device_id platform_lcd_of_match[] = {
|
static const struct of_device_id platform_lcd_of_match[] = {
|
||||||
@ -158,9 +158,7 @@ static struct platform_driver platform_lcd_driver = {
|
|||||||
.driver = {
|
.driver = {
|
||||||
.name = "platform-lcd",
|
.name = "platform-lcd",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
#ifdef CONFIG_PM
|
|
||||||
.pm = &platform_lcd_pm_ops,
|
.pm = &platform_lcd_pm_ops,
|
||||||
#endif
|
|
||||||
.of_match_table = of_match_ptr(platform_lcd_of_match),
|
.of_match_table = of_match_ptr(platform_lcd_of_match),
|
||||||
},
|
},
|
||||||
.probe = platform_lcd_probe,
|
.probe = platform_lcd_probe,
|
||||||
|
Loading…
Reference in New Issue
Block a user