Commit 8de7a63b authored by Andrew Morton's avatar Andrew Morton Committed by Len Brown

[ACPI] fix debug-mode build warning in acpi/hotkey.c

drivers/acpi/hotkey.c: In function `create_polling_proc':
drivers/acpi/hotkey.c:334: warning: ISO C90 forbids mixed declarations and code
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent d1dd0c23
...@@ -329,9 +329,10 @@ static int auto_hotkey_remove(struct acpi_device *device, int type) ...@@ -329,9 +329,10 @@ static int auto_hotkey_remove(struct acpi_device *device, int type)
static int create_polling_proc(union acpi_hotkey *device) static int create_polling_proc(union acpi_hotkey *device)
{ {
struct proc_dir_entry *proc; struct proc_dir_entry *proc;
mode_t mode;
ACPI_FUNCTION_TRACE("create_polling_proc"); ACPI_FUNCTION_TRACE("create_polling_proc");
mode_t mode = S_IFREG | S_IRUGO | S_IWUGO; mode = S_IFREG | S_IRUGO | S_IWUGO;
proc = create_proc_entry(device->poll_hotkey.action_method, proc = create_proc_entry(device->poll_hotkey.action_method,
mode, hotkey_proc_dir); mode, hotkey_proc_dir);
......
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