diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-02 00:26:05 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-02 00:31:55 -0400 |
commit | f576125dc872f28da2f89c29bfc73ec0ff02f7d9 (patch) | |
tree | 0dc3c99522b6817c9ee007992b3dabeb0623fae7 /drivers/input | |
parent | 3b6aee237e889a189fd8c558207ca0e55818f744 (diff) |
USB: iforce: remove dbg() usage
dbg() was a very old USB-specific macro that should no longer
be used. This patch removes it from being used in the driver
and uses dev_dbg() instead.
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/joystick/iforce/iforce-packets.c | 6 | ||||
-rw-r--r-- | drivers/input/joystick/iforce/iforce-usb.c | 14 |
2 files changed, 12 insertions, 8 deletions
diff --git a/drivers/input/joystick/iforce/iforce-packets.c b/drivers/input/joystick/iforce/iforce-packets.c index 68f5f1e2d73b..0d8f53b5ce53 100644 --- a/drivers/input/joystick/iforce/iforce-packets.c +++ b/drivers/input/joystick/iforce/iforce-packets.c | |||
@@ -266,12 +266,14 @@ int iforce_get_id_packet(struct iforce *iforce, char *packet) | |||
266 | iforce->ctrl->status != -EINPROGRESS, HZ); | 266 | iforce->ctrl->status != -EINPROGRESS, HZ); |
267 | 267 | ||
268 | if (iforce->ctrl->status) { | 268 | if (iforce->ctrl->status) { |
269 | dbg("iforce->ctrl->status = %d", iforce->ctrl->status); | 269 | dev_dbg(&iforce->dev->dev, |
270 | "iforce->ctrl->status = %d\n", | ||
271 | iforce->ctrl->status); | ||
270 | usb_unlink_urb(iforce->ctrl); | 272 | usb_unlink_urb(iforce->ctrl); |
271 | return -1; | 273 | return -1; |
272 | } | 274 | } |
273 | #else | 275 | #else |
274 | dbg("iforce_get_id_packet: iforce->bus = USB!"); | 276 | printk(KERN_DEBUG "iforce_get_id_packet: iforce->bus = USB!\n"); |
275 | #endif | 277 | #endif |
276 | } | 278 | } |
277 | break; | 279 | break; |
diff --git a/drivers/input/joystick/iforce/iforce-usb.c b/drivers/input/joystick/iforce/iforce-usb.c index 86d3538e104d..15e8d6531e25 100644 --- a/drivers/input/joystick/iforce/iforce-usb.c +++ b/drivers/input/joystick/iforce/iforce-usb.c | |||
@@ -76,6 +76,7 @@ void iforce_usb_xmit(struct iforce *iforce) | |||
76 | static void iforce_usb_irq(struct urb *urb) | 76 | static void iforce_usb_irq(struct urb *urb) |
77 | { | 77 | { |
78 | struct iforce *iforce = urb->context; | 78 | struct iforce *iforce = urb->context; |
79 | struct device *dev = &iforce->dev->dev; | ||
79 | int status; | 80 | int status; |
80 | 81 | ||
81 | switch (urb->status) { | 82 | switch (urb->status) { |
@@ -86,11 +87,12 @@ static void iforce_usb_irq(struct urb *urb) | |||
86 | case -ENOENT: | 87 | case -ENOENT: |
87 | case -ESHUTDOWN: | 88 | case -ESHUTDOWN: |
88 | /* this urb is terminated, clean up */ | 89 | /* this urb is terminated, clean up */ |
89 | dbg("%s - urb shutting down with status: %d", | 90 | dev_dbg(dev, "%s - urb shutting down with status: %d\n", |
90 | __func__, urb->status); | 91 | __func__, urb->status); |
91 | return; | 92 | return; |
92 | default: | 93 | default: |
93 | dbg("%s - urb has status of: %d", __func__, urb->status); | 94 | dev_dbg(dev, "%s - urb has status of: %d\n", |
95 | __func__, urb->status); | ||
94 | goto exit; | 96 | goto exit; |
95 | } | 97 | } |
96 | 98 | ||
@@ -100,8 +102,7 @@ static void iforce_usb_irq(struct urb *urb) | |||
100 | exit: | 102 | exit: |
101 | status = usb_submit_urb (urb, GFP_ATOMIC); | 103 | status = usb_submit_urb (urb, GFP_ATOMIC); |
102 | if (status) | 104 | if (status) |
103 | dev_err(&iforce->dev->dev, | 105 | dev_err(dev, "%s - usb_submit_urb failed with result %d\n", |
104 | "%s - usb_submit_urb failed with result %d\n", | ||
105 | __func__, status); | 106 | __func__, status); |
106 | } | 107 | } |
107 | 108 | ||
@@ -111,7 +112,8 @@ static void iforce_usb_out(struct urb *urb) | |||
111 | 112 | ||
112 | if (urb->status) { | 113 | if (urb->status) { |
113 | clear_bit(IFORCE_XMIT_RUNNING, iforce->xmit_flags); | 114 | clear_bit(IFORCE_XMIT_RUNNING, iforce->xmit_flags); |
114 | dbg("urb->status %d, exiting", urb->status); | 115 | dev_dbg(&iforce->dev->dev, "urb->status %d, exiting\n", |
116 | urb->status); | ||
115 | return; | 117 | return; |
116 | } | 118 | } |
117 | 119 | ||