It was used as a shorthand for gadget's device in request mapping/unmapping code, but now it's not used any more. Signed-off-by: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx> --- drivers/usb/chipidea/udc.c | 1 - drivers/usb/chipidea/udc.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 2750de6..ed4befb 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c @@ -1510,7 +1510,6 @@ static int init_eps(struct ci13xxx *udc) mEp->udc = udc; mEp->lock = &udc->lock; - mEp->device = &udc->gadget.dev; mEp->td_pool = udc->td_pool; mEp->ep.name = mEp->name; diff --git a/drivers/usb/chipidea/udc.h b/drivers/usb/chipidea/udc.h index 1125ffc..cb22126 100644 --- a/drivers/usb/chipidea/udc.h +++ b/drivers/usb/chipidea/udc.h @@ -89,7 +89,6 @@ struct ci13xxx_req { * @wedge: is the endpoint wedged * @udc: pointer to the controller * @lock: pointer to controller's spinlock - * @device: pointer to gadget's struct device * @td_pool: pointer to controller's TD pool */ struct ci13xxx_ep { @@ -108,7 +107,6 @@ struct ci13xxx_ep { /* global resources */ struct ci13xxx *udc; spinlock_t *lock; - struct device *device; struct dma_pool *td_pool; }; -- 1.7.10 -- 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