diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2006-08-15 01:37:24 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-08-15 23:27:38 -0400 |
commit | 7daef60721e03809c7e5f8aa8491df4190f6b56f (patch) | |
tree | 62bd2fc5dadc3d0497cb8ba4ff095bd9fb8c36fc /drivers/acpi | |
parent | b20d2aeb0ad322cbe7fd9120acae6118231b17a3 (diff) |
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>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/bus.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index b2977695e120..7b77ee146a80 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <linux/module.h> | 25 | #include <linux/module.h> |
26 | #include <linux/init.h> | 26 | #include <linux/init.h> |
27 | #include <linux/ioport.h> | 27 | #include <linux/ioport.h> |
28 | #include <linux/kernel.h> | ||
28 | #include <linux/list.h> | 29 | #include <linux/list.h> |
29 | #include <linux/sched.h> | 30 | #include <linux/sched.h> |
30 | #include <linux/pm.h> | 31 | #include <linux/pm.h> |
@@ -738,7 +739,10 @@ static int __init acpi_init(void) | |||
738 | return -ENODEV; | 739 | return -ENODEV; |
739 | } | 740 | } |
740 | 741 | ||
741 | firmware_register(&acpi_subsys); | 742 | result = firmware_register(&acpi_subsys); |
743 | if (result < 0) | ||
744 | printk(KERN_WARNING "%s: firmware_register error: %d\n", | ||
745 | __FUNCTION__, result); | ||
742 | 746 | ||
743 | result = acpi_bus_init(); | 747 | result = acpi_bus_init(); |
744 | 748 | ||