On Fri, 17 Dec 2010 tom.leiming@xxxxxxxxx wrote: > From: Ming Lei <tom.leiming@xxxxxxxxx> > > This patch fix kernel panic during s2ram, which is caused > by mistaken definition of glue_to_musb. > --- a/drivers/usb/musb/musb_core.h > +++ b/drivers/usb/musb/musb_core.h > @@ -577,6 +577,16 @@ static inline void musb_configure_ep0(struct musb *musb) > } > #endif /* CONFIG_BLACKFIN */ > > +static inline struct musb *dev_to_musb(struct device *dev) > +{ > +#ifdef CONFIG_USB_MUSB_HDRC_HCD > + /* usbcore insists dev->driver_data is a "struct hcd *" */ It does? Where? Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html