diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2011-10-10 12:38:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-14 14:51:28 -0500 |
commit | 194fa47ef629df07d87064ca4aa973939fa6fb4d (patch) | |
tree | 2e3fd916f4d017faec76cd876084363ab2772b18 /drivers/usb/gadget/ci13xxx_udc.c | |
parent | fd537c041b7f2cbceb5a21c37946e017006edd1c (diff) |
USB: ci13xxx_udc: fix debug trace code
This patch fixes the following compile errors that show up if switching
on the debug trace code:
drivers/usb/gadget/ci13xxx_udc.c: In function 'ci13xxx_wakeup':
drivers/usb/gadget/ci13xxx_udc.c:2517:3: error: 'dev' undeclared (first use in this function)
drivers/usb/gadget/ci13xxx_udc.c:2517:3: note: each undeclared identifier is reported only once for each function it appears in
drivers/usb/gadget/ci13xxx_udc.c: In function 'udc_probe':
drivers/usb/gadget/ci13xxx_udc.c:2867:2: error: 'name' undeclared (first use in this function)
Tested-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/ci13xxx_udc.c')
-rw-r--r-- | drivers/usb/gadget/ci13xxx_udc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/ci13xxx_udc.c b/drivers/usb/gadget/ci13xxx_udc.c index 4241241128c..9a0c3979ff4 100644 --- a/drivers/usb/gadget/ci13xxx_udc.c +++ b/drivers/usb/gadget/ci13xxx_udc.c | |||
@@ -2503,12 +2503,12 @@ static int ci13xxx_wakeup(struct usb_gadget *_gadget) | |||
2503 | spin_lock_irqsave(udc->lock, flags); | 2503 | spin_lock_irqsave(udc->lock, flags); |
2504 | if (!udc->remote_wakeup) { | 2504 | if (!udc->remote_wakeup) { |
2505 | ret = -EOPNOTSUPP; | 2505 | ret = -EOPNOTSUPP; |
2506 | dbg_trace("remote wakeup feature is not enabled\n"); | 2506 | trace("remote wakeup feature is not enabled\n"); |
2507 | goto out; | 2507 | goto out; |
2508 | } | 2508 | } |
2509 | if (!hw_cread(CAP_PORTSC, PORTSC_SUSP)) { | 2509 | if (!hw_cread(CAP_PORTSC, PORTSC_SUSP)) { |
2510 | ret = -EINVAL; | 2510 | ret = -EINVAL; |
2511 | dbg_trace("port is not suspended\n"); | 2511 | trace("port is not suspended\n"); |
2512 | goto out; | 2512 | goto out; |
2513 | } | 2513 | } |
2514 | hw_cwrite(CAP_PORTSC, PORTSC_FPR, PORTSC_FPR); | 2514 | hw_cwrite(CAP_PORTSC, PORTSC_FPR, PORTSC_FPR); |
@@ -2855,7 +2855,7 @@ static int udc_probe(struct ci13xxx_udc_driver *driver, struct device *dev, | |||
2855 | struct ci13xxx *udc; | 2855 | struct ci13xxx *udc; |
2856 | int retval = 0; | 2856 | int retval = 0; |
2857 | 2857 | ||
2858 | trace("%p, %p, %p", dev, regs, name); | 2858 | trace("%p, %p, %p", dev, regs, driver->name); |
2859 | 2859 | ||
2860 | if (dev == NULL || regs == NULL || driver == NULL || | 2860 | if (dev == NULL || regs == NULL || driver == NULL || |
2861 | driver->name == NULL) | 2861 | driver->name == NULL) |