]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/pcmcia/pcmcia_ioctl.c
use printk_once() in several places
[~shefty/rdma-dev.git] / drivers / pcmcia / pcmcia_ioctl.c
index 1703b20cad5d215ae1a2295329d87a2b253380f1..6095f8daecd7f1eb31fc1a3bc14626ad0df33db5 100644 (file)
@@ -915,12 +915,9 @@ static int ds_ioctl(struct inode * inode, struct file * file,
                err = -EPERM;
                goto free_out;
        } else {
-               static int printed = 0;
-               if (!printed) {
-                       printk(KERN_WARNING "2.6. kernels use pcmciamtd instead of memory_cs.c and do not require special\n");
-                       printk(KERN_WARNING "MTD handling any more.\n");
-                       printed++;
-               }
+                       printk_once(KERN_WARNING
+                               "2.6. kernels use pcmciamtd instead of memory_cs.c and do not require special\n");
+                       printk_once(KERN_WARNING "MTD handling any more.\n");
        }
        err = -EINVAL;
        goto free_out;