diff options
author | Randy Dunlap <[email protected]> | 2016-12-27 14:28:51 -0800 |
---|---|---|
committer | Andy Shevchenko <[email protected]> | 2016-12-28 12:36:45 +0200 |
commit | f6c5c1f96d976e1fb9d71fb824629c450ee0a122 (patch) | |
tree | 33ad743937a0720c2434efb1f10d68e689d462c8 | |
parent | 7ce7d89f48834cefece7804d38fc5d85382edf77 (diff) |
platform/x86: fix surface3_button build errors
Fix build errors when I2C=m and SURFACE_3_BUTTON=y.
The driver uses i2c interfaces so it should depend on I2C.
drivers/built-in.o: In function `surface3_driver_init':
surface3_button.c:(.init.text+0x75cb0): undefined reference to `i2c_register_driver'
drivers/built-in.o: In function `surface3_driver_exit':
surface3_button.c:(.exit.text+0x31a8): undefined reference to `i2c_del_driver'
Fixes: 1a64b719d3ae (platform/x86: Introduce button support for the Surface 3)
Signed-off-by: Randy Dunlap <[email protected]>
Reported-by: kbuild test robot <[email protected]>
Cc: Benjamin Tissoires <[email protected]>
Cc: [email protected]
Cc: Darren Hart <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
-rw-r--r-- | drivers/platform/x86/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index 5fe8be089b8b..59aa8e302bc3 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -1034,7 +1034,7 @@ config SURFACE_PRO3_BUTTON config SURFACE_3_BUTTON tristate "Power/home/volume buttons driver for Microsoft Surface 3 tablet" - depends on ACPI && KEYBOARD_GPIO + depends on ACPI && KEYBOARD_GPIO && I2C ---help--- This driver handles the power/home/volume buttons on the Microsoft Surface 3 tablet. |