]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
alpha: use printk_once
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 22 Sep 2009 00:04:01 +0000 (17:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Sep 2009 14:17:43 +0000 (07:17 -0700)
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/kernel/pci_iommu.c

index bfb880af959d4d39c4ed335cc4afb3326fcc989a..d15aedfe60661a5dc83b8292e959d23f2d4b8ac0 100644 (file)
@@ -268,11 +268,7 @@ pci_map_single_1(struct pci_dev *pdev, void *cpu_addr, size_t size,
           assume it doesn't support sg mapping, and, since we tried to
           use direct_map above, it now must be considered an error. */
        if (! alpha_mv.mv_pci_tbi) {
-               static int been_here = 0; /* Only print the message once. */
-               if (!been_here) {
-                   printk(KERN_WARNING "pci_map_single: no HW sg\n");
-                   been_here = 1;
-               }
+               printk_once(KERN_WARNING "pci_map_single: no HW sg\n");
                return 0;
        }