Alexander Aring <a.aring@xxxxxxxxx> writes: > Fix compile error in file drivers/usb/gadget/fsl_udc_core.c. Sorry about that. > drivers/usb/gadget/fsl_udc_core.c: In function 'portscx_device_speed': > drivers/usb/gadget/fsl_udc_core.c:1720: error: 'speed' undeclared (first > use in this function) > > Introduced in commit e538dfdae85244fd2c4231725d82cc1f1bc4942c. I'd add title of the commit as well. > Signed-off-by: Alexander Aring <a.aring@xxxxxxxxx> Acked-by: Michal Nazarewicz <mina86@xxxxxxxxxx> > --- > drivers/usb/gadget/fsl_udc_core.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c > index b2c44e1..d786ba3 100644 > --- a/drivers/usb/gadget/fsl_udc_core.c > +++ b/drivers/usb/gadget/fsl_udc_core.c > @@ -1717,7 +1717,7 @@ static void dtd_complete_irq(struct fsl_udc *udc) > > static inline enum usb_device_speed portscx_device_speed(u32 reg) > { > - switch (speed & PORTSCX_PORT_SPEED_MASK) { > + switch (reg & PORTSCX_PORT_SPEED_MASK) { > case PORTSCX_PORT_SPEED_HIGH: > return USB_SPEED_HIGH; > case PORTSCX_PORT_SPEED_FULL: -- Best regards, _ _ .o. | Liege of Serenly Enlightened Majesty of o' \,=./ `o ..o | Computer Science, Michal "mina86" Nazarewicz (o o) ooo +-<mina86-mina86.com>-<jid:mina86-jabber.org>--ooO--(_)--Ooo--
Attachment:
pgpEXWBxfMQ62.pgp
Description: PGP signature