Message ID | 20150205083849.12859.64266.stgit@localhost.localdomain |
---|---|
State | Accepted |
Headers | show |
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);
Check for FSP presence before initializing LED driver. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> --- hw/fsp/fsp-leds.c | 3 +++ 1 file changed, 3 insertions(+)