Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: add message if firmware_register() init fails

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by

Randy Dunlap and committed by
Len Brown
7daef607 b20d2aeb

+5 -1
+5 -1
drivers/acpi/bus.c
··· 25 25 #include <linux/module.h> 26 26 #include <linux/init.h> 27 27 #include <linux/ioport.h> 28 + #include <linux/kernel.h> 28 29 #include <linux/list.h> 29 30 #include <linux/sched.h> 30 31 #include <linux/pm.h> ··· 739 738 return -ENODEV; 740 739 } 741 740 742 - firmware_register(&acpi_subsys); 741 + result = firmware_register(&acpi_subsys); 742 + if (result < 0) 743 + printk(KERN_WARNING "%s: firmware_register error: %d\n", 744 + __FUNCTION__, result); 743 745 744 746 result = acpi_bus_init(); 745 747