diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2015-02-05 14:08:49 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-02-13 16:15:01 +1100 |
commit | ad17325735a7cd8eb574d0d6173057176d1b6e1b (patch) | |
tree | d3240f15c11f35e28d51e96b5c2b124b7ffa3e27 /hw | |
parent | 4883f42a676966c5a657b8b24debba894754ab85 (diff) | |
download | skiboot-ad17325735a7cd8eb574d0d6173057176d1b6e1b.zip skiboot-ad17325735a7cd8eb574d0d6173057176d1b6e1b.tar.gz skiboot-ad17325735a7cd8eb574d0d6173057176d1b6e1b.tar.bz2 |
FSP/LEDS: Check for FSP presence
Check for FSP presence before initializing LED driver.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/fsp/fsp-leds.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/fsp/fsp-leds.c b/hw/fsp/fsp-leds.c index 3d771eb..56f7b71 100644 --- a/hw/fsp/fsp-leds.c +++ b/hw/fsp/fsp-leds.c @@ -1249,6 +1249,9 @@ void fsp_led_init(void) { led_buffer = NULL; + if (!fsp_present()) + return; + /* Init the master lists */ list_head_init(&cec_ledq); list_head_init(&encl_ledq); |