aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-ring.c
diff options
context:
space:
mode:
authorAndiry Xu <andiry.xu@amd.com>2010-12-20 04:14:20 -0500
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2011-01-14 18:51:58 -0500
commit7961acd7327fe48e55abef277630abdbb3f2081a (patch)
treedc54ae6af0a222017042d8acc4a84df9943c3472 /drivers/usb/host/xhci-ring.c
parentf2c565e223af39ed38be5c84b1a37b591b22db83 (diff)
xHCI: fix printk_ratelimit() usage
printk_ratelimit() is misused in xhci-ring.c. Signed-off-by: Andiry Xu <andiry.xu@amd.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host/xhci-ring.c')
-rw-r--r--drivers/usb/host/xhci-ring.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index e38f7ece0a67..2116c0f64952 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -2452,7 +2452,7 @@ int xhci_queue_intr_tx(struct xhci_hcd *xhci, gfp_t mem_flags,
2452 * to set the polling interval (once the API is added). 2452 * to set the polling interval (once the API is added).
2453 */ 2453 */
2454 if (xhci_interval != ep_interval) { 2454 if (xhci_interval != ep_interval) {
2455 if (!printk_ratelimit()) 2455 if (printk_ratelimit())
2456 dev_dbg(&urb->dev->dev, "Driver uses different interval" 2456 dev_dbg(&urb->dev->dev, "Driver uses different interval"
2457 " (%d microframe%s) than xHCI " 2457 " (%d microframe%s) than xHCI "
2458 "(%d microframe%s)\n", 2458 "(%d microframe%s)\n",
@@ -3080,7 +3080,7 @@ int xhci_queue_isoc_tx_prepare(struct xhci_hcd *xhci, gfp_t mem_flags,
3080 * to set the polling interval (once the API is added). 3080 * to set the polling interval (once the API is added).
3081 */ 3081 */
3082 if (xhci_interval != ep_interval) { 3082 if (xhci_interval != ep_interval) {
3083 if (!printk_ratelimit()) 3083 if (printk_ratelimit())
3084 dev_dbg(&urb->dev->dev, "Driver uses different interval" 3084 dev_dbg(&urb->dev->dev, "Driver uses different interval"
3085 " (%d microframe%s) than xHCI " 3085 " (%d microframe%s) than xHCI "
3086 "(%d microframe%s)\n", 3086 "(%d microframe%s)\n",