aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/atm/usbatm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/atm/usbatm.c')
-rw-r--r--drivers/usb/atm/usbatm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/atm/usbatm.c b/drivers/usb/atm/usbatm.c
index 989e16e4ab5..d3448ca110c 100644
--- a/drivers/usb/atm/usbatm.c
+++ b/drivers/usb/atm/usbatm.c
@@ -81,6 +81,7 @@
81#include <linux/timer.h> 81#include <linux/timer.h>
82#include <linux/wait.h> 82#include <linux/wait.h>
83#include <linux/kthread.h> 83#include <linux/kthread.h>
84#include <linux/ratelimit.h>
84 85
85#ifdef VERBOSE_DEBUG 86#ifdef VERBOSE_DEBUG
86static int usbatm_print_packet(const unsigned char *data, int len); 87static int usbatm_print_packet(const unsigned char *data, int len);
@@ -668,8 +669,7 @@ static int usbatm_atm_send(struct atm_vcc *vcc, struct sk_buff *skb)
668 /* racy disconnection check - fine */ 669 /* racy disconnection check - fine */
669 if (!instance || instance->disconnected) { 670 if (!instance || instance->disconnected) {
670#ifdef DEBUG 671#ifdef DEBUG
671 if (printk_ratelimit()) 672 printk_ratelimited(KERN_DEBUG "%s: %s!\n", __func__, instance ? "disconnected" : "NULL instance");
672 printk(KERN_DEBUG "%s: %s!\n", __func__, instance ? "disconnected" : "NULL instance");
673#endif 673#endif
674 err = -ENODEV; 674 err = -ENODEV;
675 goto fail; 675 goto fail;