ide: use printk_once
PATCH 1/1 ide: use printk_once
From: Marcin Slusarz <[email protected]>
Signed-off-by Marcin Slusarz <[email protected]>
Acked-by David S. Miller <[email protected]>
Cc Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/ide/ide-proc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/ide/ide-proc.c renamed from drivers/ide/ide-proc.c~ide-use-printk_once +1 -7
@@ -273,14 +273,8 @@ static const struct ide_proc_devset ide_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)
_
David Miller
AppliedFrom: [email protected]
Date: Fri, 18 Sep 2009 12:49:48 -0700
Quoted 6 lines
From: Marcin Slusarz <[email protected]>
Signed-off-by Marcin Slusarz <[email protected]>Acked-by David S. Miller <[email protected]>Cc Bartlomiej Zolnierkiewicz <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Applied.