Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 194fa47e authored by Marc Kleine-Budde's avatar Marc Kleine-Budde Committed by Greg Kroah-Hartman
Browse files

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: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fd537c04
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -2503,12 +2503,12 @@ static int ci13xxx_wakeup(struct usb_gadget *_gadget)
	spin_lock_irqsave(udc->lock, flags);
	spin_lock_irqsave(udc->lock, flags);
	if (!udc->remote_wakeup) {
	if (!udc->remote_wakeup) {
		ret = -EOPNOTSUPP;
		ret = -EOPNOTSUPP;
		dbg_trace("remote wakeup feature is not enabled\n");
		trace("remote wakeup feature is not enabled\n");
		goto out;
		goto out;
	}
	}
	if (!hw_cread(CAP_PORTSC, PORTSC_SUSP)) {
	if (!hw_cread(CAP_PORTSC, PORTSC_SUSP)) {
		ret = -EINVAL;
		ret = -EINVAL;
		dbg_trace("port is not suspended\n");
		trace("port is not suspended\n");
		goto out;
		goto out;
	}
	}
	hw_cwrite(CAP_PORTSC, PORTSC_FPR, PORTSC_FPR);
	hw_cwrite(CAP_PORTSC, PORTSC_FPR, PORTSC_FPR);
@@ -2855,7 +2855,7 @@ static int udc_probe(struct ci13xxx_udc_driver *driver, struct device *dev,
	struct ci13xxx *udc;
	struct ci13xxx *udc;
	int retval = 0;
	int retval = 0;


	trace("%p, %p, %p", dev, regs, name);
	trace("%p, %p, %p", dev, regs, driver->name);


	if (dev == NULL || regs == NULL || driver == NULL ||
	if (dev == NULL || regs == NULL || driver == NULL ||
			driver->name == NULL)
			driver->name == NULL)