platform/x86: silead depends on I2C being built-in
authorArnd Bergmann <arnd@arndb.de>
Thu, 2 Feb 2017 14:25:57 +0000 (15:25 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 13 Feb 2017 22:39:48 +0000 (00:39 +0200)
The new driver cannot be a loadable module, so if I2C is loadable, we get this
link error:

drivers/platform/built-in.o: In function `silead_ts_dmi_init':
silead_dmi.c:(.init.text+0x2ef): undefined reference to `i2c_bus_type'

This makes the Kconfig dependency stricter to require I2C=y.

Fixes: 9eeda3897a85 ("platform/x86: add support for devices with Silead touchscreens")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/Kconfig

index cfa842daa27009008c68c2953ae5c43827f20696..d6fbfc0fd2de675938728b67b6e5e312d56c47f7 100644 (file)
@@ -1086,7 +1086,7 @@ config INTEL_TURBO_MAX_3
 
 config SILEAD_DMI
        bool "Tablets with Silead touchscreens"
-       depends on ACPI && DMI && I2C && INPUT
+       depends on ACPI && DMI && I2C=y && INPUT
        ---help---
          Certain ACPI based tablets with Silead touchscreens do not have
          enough data in ACPI tables for the touchscreen driver to handle