Skip to content

Commit

Permalink
[ACPI] fix debug-mode build warning in acpi/hotkey.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Len Brown committed Jul 12, 2005
1 parent d1dd0c2 commit 8de7a63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/acpi/hotkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,10 @@ static int auto_hotkey_remove(struct acpi_device *device, int type)
static int create_polling_proc(union acpi_hotkey *device)
{
struct proc_dir_entry *proc;
mode_t mode;

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,
mode, hotkey_proc_dir);
Expand Down

0 comments on commit 8de7a63

Please sign in to comment.