diff options
Diffstat (limited to 'drivers/xen/xen-acpi-cpuhotplug.c')
| -rw-r--r-- | drivers/xen/xen-acpi-cpuhotplug.c | 13 | 
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/xen/xen-acpi-cpuhotplug.c b/drivers/xen/xen-acpi-cpuhotplug.c index 8dae6c13063..3e62ee4b3b6 100644 --- a/drivers/xen/xen-acpi-cpuhotplug.c +++ b/drivers/xen/xen-acpi-cpuhotplug.c @@ -24,10 +24,7 @@  #include <linux/cpu.h>  #include <linux/acpi.h>  #include <linux/uaccess.h> -#include <acpi/acpi_bus.h> -#include <acpi/acpi_drivers.h>  #include <acpi/processor.h> -  #include <xen/acpi.h>  #include <xen/interface/platform.h>  #include <asm/xen/hypercall.h> @@ -269,7 +266,8 @@ static void acpi_processor_hotplug_notify(acpi_handle handle,  		if (!is_processor_present(handle))  			break; -		if (!acpi_bus_get_device(handle, &device)) +		acpi_bus_get_device(handle, &device); +		if (acpi_device_enumerated(device))  			break;  		result = acpi_bus_scan(handle); @@ -277,8 +275,9 @@ static void acpi_processor_hotplug_notify(acpi_handle handle,  			pr_err(PREFIX "Unable to add the device\n");  			break;  		} -		result = acpi_bus_get_device(handle, &device); -		if (result) { +		device = NULL; +		acpi_bus_get_device(handle, &device); +		if (!acpi_device_enumerated(device)) {  			pr_err(PREFIX "Missing device object\n");  			break;  		} @@ -314,7 +313,7 @@ static void acpi_processor_hotplug_notify(acpi_handle handle,  		goto out;  	} -	(void) acpi_evaluate_hotplug_ost(handle, event, ost_code, NULL); +	(void) acpi_evaluate_ost(handle, event, ost_code, NULL);  out:  	acpi_scan_lock_release();  | 
