diff options
author | Andrew Morton <akpm@osdl.org> | 2005-03-30 22:53:30 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-07-11 23:59:34 -0400 |
commit | 8de7a63b69a263b7549599be882d7aa15397f8b3 (patch) | |
tree | 48d2b9144d0e72611fc4d44f66ba7f0dce9eb451 /drivers/acpi | |
parent | d1dd0c23916bd781de27bc5ec1c295064e9ce9cc (diff) |
[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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/hotkey.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/hotkey.c b/drivers/acpi/hotkey.c index 0aef9fc449c5..babdf762eadb 100644 --- a/drivers/acpi/hotkey.c +++ b/drivers/acpi/hotkey.c | |||
@@ -329,9 +329,10 @@ static int auto_hotkey_remove(struct acpi_device *device, int type) | |||
329 | static int create_polling_proc(union acpi_hotkey *device) | 329 | static int create_polling_proc(union acpi_hotkey *device) |
330 | { | 330 | { |
331 | struct proc_dir_entry *proc; | 331 | struct proc_dir_entry *proc; |
332 | mode_t mode; | ||
332 | 333 | ||
333 | ACPI_FUNCTION_TRACE("create_polling_proc"); | 334 | ACPI_FUNCTION_TRACE("create_polling_proc"); |
334 | mode_t mode = S_IFREG | S_IRUGO | S_IWUGO; | 335 | mode = S_IFREG | S_IRUGO | S_IWUGO; |
335 | 336 | ||
336 | proc = create_proc_entry(device->poll_hotkey.action_method, | 337 | proc = create_proc_entry(device->poll_hotkey.action_method, |
337 | mode, hotkey_proc_dir); | 338 | mode, hotkey_proc_dir); |