aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/wusbcore
diff options
context:
space:
mode:
authorManuel Zerpies <manuel.f.zerpies@ww.stud.uni-erlangen.de>2011-06-16 08:15:16 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-07-01 17:43:25 -0400
commit9708cd2f84fade7f7c771712efa38b5f56d3c115 (patch)
treed758e3ba7acbc59f65ddc75d152eeb35f0e7287e /drivers/usb/wusbcore
parent305e7be5d5724ced063fcf21c3df6bd0fed19a04 (diff)
wusb: use printk_ratelimited() instead of printk_ratelimit()
Since printk_ratelimit() shouldn't be used anymore (see comment in include/linux/printk.h), replace it with printk_ratelimited() Signed-off-by: Manuel Zerpies <manuel.f.zerpies@ww.stud.uni-erlangen.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/wusbcore')
-rw-r--r--drivers/usb/wusbcore/wa-xfer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/wusbcore/wa-xfer.c b/drivers/usb/wusbcore/wa-xfer.c
index 6ccd93a9b909..419334568be6 100644
--- a/drivers/usb/wusbcore/wa-xfer.c
+++ b/drivers/usb/wusbcore/wa-xfer.c
@@ -83,6 +83,7 @@
83#include <linux/spinlock.h> 83#include <linux/spinlock.h>
84#include <linux/slab.h> 84#include <linux/slab.h>
85#include <linux/hash.h> 85#include <linux/hash.h>
86#include <linux/ratelimit.h>
86 87
87#include "wa-hc.h" 88#include "wa-hc.h"
88#include "wusbhc.h" 89#include "wusbhc.h"
@@ -1217,16 +1218,14 @@ static int wa_xfer_status_to_errno(u8 status)
1217 if (status == 0) 1218 if (status == 0)
1218 return 0; 1219 return 0;
1219 if (status >= ARRAY_SIZE(xlat)) { 1220 if (status >= ARRAY_SIZE(xlat)) {
1220 if (printk_ratelimit()) 1221 printk_ratelimited(KERN_ERR "%s(): BUG? "
1221 printk(KERN_ERR "%s(): BUG? "
1222 "Unknown WA transfer status 0x%02x\n", 1222 "Unknown WA transfer status 0x%02x\n",
1223 __func__, real_status); 1223 __func__, real_status);
1224 return -EINVAL; 1224 return -EINVAL;
1225 } 1225 }
1226 errno = xlat[status]; 1226 errno = xlat[status];
1227 if (unlikely(errno > 0)) { 1227 if (unlikely(errno > 0)) {
1228 if (printk_ratelimit()) 1228 printk_ratelimited(KERN_ERR "%s(): BUG? "
1229 printk(KERN_ERR "%s(): BUG? "
1230 "Inconsistent WA status: 0x%02x\n", 1229 "Inconsistent WA status: 0x%02x\n",
1231 __func__, real_status); 1230 __func__, real_status);
1232 errno = -errno; 1231 errno = -errno;