[Skiboot] [PATCH 06/22] FSP/LEDS: Check for FSP presence

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Thu Feb 5 19:38:49 AEDT 2015


Check for FSP presence before initializing LED driver.

Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 hw/fsp/fsp-leds.c |    3 +++
 1 file changed, 3 insertions(+)

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);



More information about the Skiboot mailing list