[Revert me]: workaround to enable KPD LED on Lexington
authorShijie Zhang <shijie.zhang@intel.com>
Tue, 10 Apr 2012 09:50:57 +0000 (17:50 +0800)
committerbuildbot <buildbot@intel.com>
Thu, 12 Apr 2012 23:37:12 +0000 (16:37 -0700)
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 <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/42832
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
arch/x86/platform/intel-mid/board-blackbay.c

index df0fc7c..05651dc 100644 (file)
@@ -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);