]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ACPI] fix debug-mode build warning in acpi/hotkey.c
authorAndrew Morton <akpm@osdl.org>
Thu, 31 Mar 2005 03:53:30 +0000 (22:53 -0500)
committerLen Brown <len.brown@intel.com>
Tue, 12 Jul 2005 03:59:34 +0000 (23:59 -0400)
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>
drivers/acpi/hotkey.c

index 0aef9fc449c557e9e8d4ec558c82e3f5b1f54606..babdf762eadba7789281718348388ab074260ea1 100644 (file)
@@ -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);