Skip to content

Commit

Permalink
usb: chipidea: drop unused field "device" from ci13xxx_ep
Browse files Browse the repository at this point in the history
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@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Alexander Shishkin authored and Greg Kroah-Hartman committed May 11, 2012
1 parent 5e0aa49 commit ab3999a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/usb/chipidea/ci.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
* @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 {
Expand All @@ -57,7 +56,6 @@ struct ci13xxx_ep {
/* global resources */
struct ci13xxx *udc;
spinlock_t *lock;
struct device *device;
struct dma_pool *td_pool;
};

Expand Down
1 change: 0 additions & 1 deletion drivers/usb/chipidea/udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,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;
Expand Down

0 comments on commit ab3999a

Please sign in to comment.