Commit 74523c90 authored by Alok N Kataria's avatar Alok N Kataria Committed by Andi Kleen

ACPI: fix checkpatch.pl complaints in scan.c

http://bugzilla.kernel.org/show_bug.cgi?id=9772Signed-off-by: default avatarAlok N Kataria <akataria@vmware.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
parent 20b93734
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/acpi.h> #include <linux/acpi.h>
#include <asm/signal.h> #include <linux/signal.h>
#include <linux/kthread.h>
#include <acpi/acpi_drivers.h> #include <acpi/acpi_drivers.h>
#include <acpi/acinterp.h> /* for acpi_ex_eisa_id_to_string() */ #include <acpi/acinterp.h> /* for acpi_ex_eisa_id_to_string() */
...@@ -154,6 +155,7 @@ acpi_eject_store(struct device *d, struct device_attribute *attr, ...@@ -154,6 +155,7 @@ acpi_eject_store(struct device *d, struct device_attribute *attr,
acpi_status status; acpi_status status;
acpi_object_type type = 0; acpi_object_type type = 0;
struct acpi_device *acpi_device = to_acpi_device(d); struct acpi_device *acpi_device = to_acpi_device(d);
struct task_struct *task;
if ((!count) || (buf[0] != '1')) { if ((!count) || (buf[0] != '1')) {
return -EINVAL; return -EINVAL;
...@@ -171,9 +173,11 @@ acpi_eject_store(struct device *d, struct device_attribute *attr, ...@@ -171,9 +173,11 @@ acpi_eject_store(struct device *d, struct device_attribute *attr,
} }
/* remove the device in another thread to fix the deadlock issue */ /* remove the device in another thread to fix the deadlock issue */
ret = kernel_thread(acpi_bus_hot_remove_device, task = kthread_run(acpi_bus_hot_remove_device,
acpi_device->handle, SIGCHLD); acpi_device->handle, "acpi_hot_remove_device");
err: if (IS_ERR(task))
ret = PTR_ERR(task);
err:
return ret; return ret;
} }
......
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