Skip to content

Commit

Permalink
ACPI: add message if firmware_register() init fails
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Len Brown committed Aug 16, 2006
1 parent b20d2ae commit 7daef60
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/acpi/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <linux/module.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/sched.h>
#include <linux/pm.h>
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 7daef60

Please sign in to comment.