From: Randy Dunlap Date: Wed, 12 Jul 2006 05:47:00 +0000 (-0400) Subject: ACPI: handle firmware_register init errors X-Git-Tag: v2.6.18-rc5~75^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d568df84f987a9321c1f5826a6c8678ef2bb2b70;p=profile%2Fivi%2Fkernel-x86-ivi.git ACPI: handle firmware_register init errors Signed-off-by: Randy Dunlap Signed-off-by: Len Brown --- diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index b297769..7b77ee1 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -738,7 +739,10 @@ static int __init acpi_init(void) return -ENODEV; } - firmware_register(&acpi_subsys); + result = firmware_register(&acpi_subsys); + if (result < 0) + printk(KERN_WARNING "%s: firmware_register error: %d\n", + __FUNCTION__, result); result = acpi_bus_init();