]> Git Repo - J-linux.git/commitdiff
ide: use printk_once
authorMarcin Slusarz <[email protected]>
Tue, 22 Sep 2009 23:29:00 +0000 (16:29 -0700)
committerDavid S. Miller <[email protected]>
Tue, 22 Sep 2009 23:29:00 +0000 (16:29 -0700)
Signed-off-by: Marcin Slusarz <[email protected]>
Acked-by: David S. Miller <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/ide/ide-proc.c

index 28d09a5d84500b588ffe862a6cfc0221bb5a3a1e..017c09540c2f70b416af3a39eaf122a5a49287f1 100644 (file)
@@ -273,14 +273,8 @@ static const struct ide_proc_devset ide_generic_settings[] = {
 
 static void proc_ide_settings_warn(void)
 {
-       static int warned;
-
-       if (warned)
-               return;
-
-       printk(KERN_WARNING "Warning: /proc/ide/hd?/settings interface is "
+       printk_once(KERN_WARNING "Warning: /proc/ide/hd?/settings interface is "
                            "obsolete, and will be removed soon!\n");
-       warned = 1;
 }
 
 static int ide_settings_proc_show(struct seq_file *m, void *v)
This page took 0.048961 seconds and 4 git commands to generate.