]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/block/viodasd.c
tty: riscom8, fix shutdown declaration
[karo-tx-linux.git] / drivers / block / viodasd.c
index 390d69bb7c482ad1a79a09a42192575b692b4980..b441ce3832e9ff7a403fed425d79ca354aace97b 100644 (file)
@@ -416,15 +416,9 @@ retry:
                goto retry;
        }
        if (we.max_disk > (MAX_DISKNO - 1)) {
-               static int warned;
-
-               if (warned == 0) {
-                       warned++;
-                       printk(VIOD_KERN_INFO
-                               "Only examining the first %d "
-                               "of %d disks connected\n",
-                               MAX_DISKNO, we.max_disk + 1);
-               }
+               printk_once(VIOD_KERN_INFO
+                       "Only examining the first %d of %d disks connected\n",
+                       MAX_DISKNO, we.max_disk + 1);
        }
 
        /* Send the close event to OS/400.  We DON'T expect a response */