diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-02-19 16:22:31 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-03-07 21:11:50 -0800 |
commit | ceb5b6c8bee4841abac9e010c6069934d0f7c996 (patch) | |
tree | b5af4e29e5ef29fe185fbf8b808ae5dc5f0ae6fb /drivers/input | |
parent | 902cb3afab8d4c924376de51ec5c02d171992914 (diff) | |
download | linux-ceb5b6c8bee4841abac9e010c6069934d0f7c996.tar.gz linux-ceb5b6c8bee4841abac9e010c6069934d0f7c996.tar.bz2 linux-ceb5b6c8bee4841abac9e010c6069934d0f7c996.zip |
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/pwm-beeper.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/input/misc/pwm-beeper.c b/drivers/input/misc/pwm-beeper.c index a28ee70ff158..a562071f6385 100644 --- a/drivers/input/misc/pwm-beeper.c +++ b/drivers/input/misc/pwm-beeper.c @@ -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), }, }; |