From 1ff17267489143a624645428a312361fe67761dd Mon Sep 17 00:00:00 2001 From: Shijie Zhang Date: Tue, 10 Apr 2012 17:50:57 +0800 Subject: [PATCH] [Revert me]: workaround to enable KPD LED on Lexington BZ: 29806 Using hard coding GPIO pin for KPD LED on Lexington before IAFW adding the corresponding GPIO pin in SFI table. Change-Id: I462ce163c94f5ff3abb86f39cec58a7a4b9bfb75 Signed-off-by: Shijie Zhang Reviewed-on: http://android.intel.com:8080/42832 Reviewed-by: Du, Alek Tested-by: Wang, Zhifeng Reviewed-by: buildbot Tested-by: buildbot --- arch/x86/platform/intel-mid/board-blackbay.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/x86/platform/intel-mid/board-blackbay.c b/arch/x86/platform/intel-mid/board-blackbay.c index df0fc7c..05651dca 100644 --- a/arch/x86/platform/intel-mid/board-blackbay.c +++ b/arch/x86/platform/intel-mid/board-blackbay.c @@ -2064,13 +2064,17 @@ static int __init intel_kpd_gpio_led_init(void) return -ENOMEM; } + /* Revert me: + * Using hard coding here, will revert after + * IAFW support for KPD LED GPIO is available + */ ret = get_gpio_by_name("intel_kpd_led"); if (ret == -1) { pr_err("Failed to get KPD LED gpio pin from SFI table\n"); - return -ENODEV; - } + pdata.gpio = 133; /* hard coding */ + } else + pdata.gpio = ret; - pdata.gpio = ret; pdev->dev.platform_data = &pdata; return platform_device_add(pdev); -- 2.7.4