From: Randy Dunlap <randy.dunlap@xxxxxxxxxx> Fix optional part of driver to be built optionally: drivers/platform/x86/thinkpad_acpi.c:6251: error: implicit declaration of function 'tpacpi_hotkey_driver_mask_set' Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx> --- drivers/platform/x86/thinkpad_acpi.c | 2 ++ 1 file changed, 2 insertions(+) --- linux-next-20091009.orig/drivers/platform/x86/thinkpad_acpi.c +++ linux-next-20091009/drivers/platform/x86/thinkpad_acpi.c @@ -6245,12 +6245,14 @@ static int __init brightness_init(struct ibm_backlight_device->props.brightness = b & TP_EC_BACKLIGHT_LVLMSK; backlight_update_status(ibm_backlight_device); +#ifdef CONFIG_THINKPAD_ACPI_HOTKEY_POLL vdbg_printk(TPACPI_DBG_INIT | TPACPI_DBG_BRGHT, "brightness: registering brightness hotkeys " "as change notification\n"); tpacpi_hotkey_driver_mask_set(hotkey_driver_mask | TP_ACPI_HKEY_BRGHTUP_MASK | TP_ACPI_HKEY_BRGHTDWN_MASK);; +#endif return 0; } -- To unsubscribe from this list: send the line "unsubscribe linux-next" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html