mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
Input: pwm-beeper - remove unneeded PWM_BEEPER_PM_OPS define
The device->pm pointer is always present so there is no need to do tricks with conditionally defining the pointer. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
902cb3afab
commit
ceb5b6c8be
1 changed files with 1 additions and 7 deletions
|
@ -169,12 +169,6 @@ static int __maybe_unused pwm_beeper_resume(struct device *dev)
|
|||
static SIMPLE_DEV_PM_OPS(pwm_beeper_pm_ops,
|
||||
pwm_beeper_suspend, pwm_beeper_resume);
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
#define PWM_BEEPER_PM_OPS (&pwm_beeper_pm_ops)
|
||||
#else
|
||||
#define PWM_BEEPER_PM_OPS NULL
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
static const struct of_device_id pwm_beeper_match[] = {
|
||||
{ .compatible = "pwm-beeper", },
|
||||
|
@ -187,7 +181,7 @@ static struct platform_driver pwm_beeper_driver = {
|
|||
.remove = pwm_beeper_remove,
|
||||
.driver = {
|
||||
.name = "pwm-beeper",
|
||||
.pm = PWM_BEEPER_PM_OPS,
|
||||
.pm = &pwm_beeper_pm_ops,
|
||||
.of_match_table = of_match_ptr(pwm_beeper_match),
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue