mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
ide: use printk_once
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>
This commit is contained in:
parent
7fa07729e4
commit
01f1afaf7b
1 changed files with 1 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue