|
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> |
@@ -68,7 +69,8 @@ int acpi_bus_get_device(acpi_handle handle, struct acpi_device **device) |
68 | 69 |
|
69 | 70 | status = acpi_get_data(handle, acpi_bus_data_handler, (void **)device); |
70 | 71 | if (ACPI_FAILURE(status) || !*device) { |
71 | | - ACPI_EXCEPTION((AE_INFO, status, "No context for object [%p]", handle)); |
| 72 | + ACPI_DEBUG_PRINT((ACPI_DB_INFO, "No context for object [%p]\n", |
| 73 | + handle)); |
72 | 74 | return -ENODEV; |
73 | 75 | } |
74 | 76 |
|
@@ -192,7 +194,7 @@ int acpi_bus_set_power(acpi_handle handle, int state) |
192 | 194 | /* Make sure this is a valid target state */ |
193 | 195 |
|
194 | 196 | if (!device->flags.power_manageable) { |
195 | | - ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Device `[%s]' is not power manageable", |
| 197 | + ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Device `[%s]' is not power manageable\n", |
196 | 198 | device->kobj.name)); |
197 | 199 | return -ENODEV; |
198 | 200 | } |
@@ -738,7 +740,10 @@ static int __init acpi_init(void) |
738 | 740 | return -ENODEV; |
739 | 741 | } |
740 | 742 |
|
741 | | - firmware_register(&acpi_subsys); |
| 743 | + result = firmware_register(&acpi_subsys); |
| 744 | + if (result < 0) |
| 745 | + printk(KERN_WARNING "%s: firmware_register error: %d\n", |
| 746 | + __FUNCTION__, result); |
742 | 747 |
|
743 | 748 | result = acpi_bus_init(); |
744 | 749 |
|
|
0 commit comments