diff options
author | Majunath Goudar <csmanjuvijay@gmail.com> | 2013-10-22 19:00:27 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-10-22 19:02:28 -0400 |
commit | 33777f34b5cc16a9fb2cd480e7db84c8de631fde (patch) | |
tree | 55079d9cdf607128fcd45a133b0df01593ff1463 /drivers/input | |
parent | 9354f263383975ed5e11eb5a9cf21f2596f95be2 (diff) |
Input: fix PWM-related undefined reference errors
This patch adds a PWM dependency to configure the INPUT_MAX8997_HAPTIC
and INPUT_PWM_BEEPER. Without this patch, build system can lead to build
failure. This was observed during randconfig testing, in which
INPUT_MAX8997_HAPTIC or INPUT_PWM_BEEPER was enabled w/o PWM being
enabled, leading to the following errors:
init/built-in.o
drivers/built-in.o: In function `max8997_haptic_disable':
:(.text+0x1073a0): undefined reference to `pwm_disable'
drivers/built-in.o: In function `max8997_haptic_remove':
:(.text+0x1073fc): undefined reference to `pwm_free'
drivers/built-in.o: In function `max8997_haptic_play_effect_work':
:(.text+0x1074f0): undefined reference to `pwm_config'
:(.text+0x1075b0): undefined reference to `pwm_enable'
drivers/built-in.o: In function `max8997_haptic_probe':
:(.text+0x1076f8): undefined reference to `pwm_request'
:(.text+0x1077e8): undefined reference to `pwm_free'
drivers/built-in.o: In function `pwm_beeper_resume':
:(.text+0x1081a4): undefined reference to `pwm_config'
make: *** [vmlinux] Error 1
Signed-off-by: Manjunath Goudar <csmanjuvijay@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/Kconfig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig index aa51baaa9b1e..5f4967d01bc3 100644 --- a/drivers/input/misc/Kconfig +++ b/drivers/input/misc/Kconfig | |||
@@ -156,7 +156,7 @@ config INPUT_MAX8925_ONKEY | |||
156 | 156 | ||
157 | config INPUT_MAX8997_HAPTIC | 157 | config INPUT_MAX8997_HAPTIC |
158 | tristate "MAXIM MAX8997 haptic controller support" | 158 | tristate "MAXIM MAX8997 haptic controller support" |
159 | depends on HAVE_PWM && MFD_MAX8997 | 159 | depends on PWM && HAVE_PWM && MFD_MAX8997 |
160 | select INPUT_FF_MEMLESS | 160 | select INPUT_FF_MEMLESS |
161 | help | 161 | help |
162 | This option enables device driver support for the haptic controller | 162 | This option enables device driver support for the haptic controller |
@@ -461,7 +461,7 @@ config INPUT_PCF8574 | |||
461 | 461 | ||
462 | config INPUT_PWM_BEEPER | 462 | config INPUT_PWM_BEEPER |
463 | tristate "PWM beeper support" | 463 | tristate "PWM beeper support" |
464 | depends on HAVE_PWM || PWM | 464 | depends on PWM && HAVE_PWM |
465 | help | 465 | help |
466 | Say Y here to get support for PWM based beeper devices. | 466 | Say Y here to get support for PWM based beeper devices. |
467 | 467 | ||