Commit 3be11c8f authored by Len Brown's avatar Len Brown

Pull bugfix into test branch

parents 706b75dd 6796a120
...@@ -11,7 +11,7 @@ config ACPI ...@@ -11,7 +11,7 @@ config ACPI
bool "ACPI Support" bool "ACPI Support"
depends on IA64 || X86 depends on IA64 || X86
depends on PCI depends on PCI
select PM depends on PM
default y default y
---help--- ---help---
Advanced Configuration and Power Interface (ACPI) support for Advanced Configuration and Power Interface (ACPI) support for
......
...@@ -1032,7 +1032,7 @@ acpi_status ...@@ -1032,7 +1032,7 @@ acpi_status
acpi_os_create_cache(char *name, u16 size, u16 depth, acpi_cache_t ** cache) acpi_os_create_cache(char *name, u16 size, u16 depth, acpi_cache_t ** cache)
{ {
*cache = kmem_cache_create(name, size, 0, 0, NULL, NULL); *cache = kmem_cache_create(name, size, 0, 0, NULL, NULL);
if (cache == NULL) if (*cache == NULL)
return AE_ERROR; return AE_ERROR;
else else
return AE_OK; return AE_OK;
......
...@@ -98,11 +98,12 @@ void acpi_pci_unregister_driver(struct acpi_pci_driver *driver) ...@@ -98,11 +98,12 @@ void acpi_pci_unregister_driver(struct acpi_pci_driver *driver)
struct acpi_pci_driver **pptr = &sub_driver; struct acpi_pci_driver **pptr = &sub_driver;
while (*pptr) { while (*pptr) {
if (*pptr != driver) if (*pptr == driver)
continue; break;
*pptr = (*pptr)->next; pptr = &(*pptr)->next;
break;
} }
BUG_ON(!*pptr);
*pptr = (*pptr)->next;
if (!driver->remove) if (!driver->remove)
return; return;
......
...@@ -901,13 +901,13 @@ static int __init acpi_processor_init(void) ...@@ -901,13 +901,13 @@ static int __init acpi_processor_init(void)
acpi_processor_dir = proc_mkdir(ACPI_PROCESSOR_CLASS, acpi_root_dir); acpi_processor_dir = proc_mkdir(ACPI_PROCESSOR_CLASS, acpi_root_dir);
if (!acpi_processor_dir) if (!acpi_processor_dir)
return 0; return -ENOMEM;
acpi_processor_dir->owner = THIS_MODULE; acpi_processor_dir->owner = THIS_MODULE;
result = acpi_bus_register_driver(&acpi_processor_driver); result = acpi_bus_register_driver(&acpi_processor_driver);
if (result < 0) { if (result < 0) {
remove_proc_entry(ACPI_PROCESSOR_CLASS, acpi_root_dir); remove_proc_entry(ACPI_PROCESSOR_CLASS, acpi_root_dir);
return 0; return result;
} }
acpi_processor_install_hotplug_notify(); acpi_processor_install_hotplug_notify();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment