ide: use printk_once
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 22 Sep 2009 23:29:00 +0000 (16:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Sep 2009 23:29:00 +0000 (16:29 -0700)
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/ide-proc.c

index 28d09a5..017c095 100644 (file)
@@ -273,14 +273,8 @@ static const struct ide_proc_devset ide_generic_settings[] = {
 
 static void proc_ide_settings_warn(void)
 {
 
 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");
                            "obsolete, and will be removed soon!\n");
-       warned = 1;
 }
 
 static int ide_settings_proc_show(struct seq_file *m, void *v)
 }
 
 static int ide_settings_proc_show(struct seq_file *m, void *v)