diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2012-05-11 10:25:57 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-11 19:59:36 -0400 |
commit | ab3999a26147e9c0d2949df751b86519065bf8bd (patch) | |
tree | 347d97ef0514716aeaf9f31626c8cddd02dcb7d9 /drivers/usb/chipidea | |
parent | 5e0aa49ec61e888d50727a7e80e87626f745c119 (diff) |
usb: chipidea: drop unused field "device" from ci13xxx_ep
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>
Diffstat (limited to 'drivers/usb/chipidea')
-rw-r--r-- | drivers/usb/chipidea/ci.h | 2 | ||||
-rw-r--r-- | drivers/usb/chipidea/udc.c | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/chipidea/ci.h b/drivers/usb/chipidea/ci.h index 8a6872aae79f..50911f8490d4 100644 --- a/drivers/usb/chipidea/ci.h +++ b/drivers/usb/chipidea/ci.h | |||
@@ -38,7 +38,6 @@ | |||
38 | * @wedge: is the endpoint wedged | 38 | * @wedge: is the endpoint wedged |
39 | * @udc: pointer to the controller | 39 | * @udc: pointer to the controller |
40 | * @lock: pointer to controller's spinlock | 40 | * @lock: pointer to controller's spinlock |
41 | * @device: pointer to gadget's struct device | ||
42 | * @td_pool: pointer to controller's TD pool | 41 | * @td_pool: pointer to controller's TD pool |
43 | */ | 42 | */ |
44 | struct ci13xxx_ep { | 43 | struct ci13xxx_ep { |
@@ -57,7 +56,6 @@ struct ci13xxx_ep { | |||
57 | /* global resources */ | 56 | /* global resources */ |
58 | struct ci13xxx *udc; | 57 | struct ci13xxx *udc; |
59 | spinlock_t *lock; | 58 | spinlock_t *lock; |
60 | struct device *device; | ||
61 | struct dma_pool *td_pool; | 59 | struct dma_pool *td_pool; |
62 | }; | 60 | }; |
63 | 61 | ||
diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 09458d81f300..51f96942dc5e 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c | |||
@@ -1450,7 +1450,6 @@ static int init_eps(struct ci13xxx *udc) | |||
1450 | 1450 | ||
1451 | mEp->udc = udc; | 1451 | mEp->udc = udc; |
1452 | mEp->lock = &udc->lock; | 1452 | mEp->lock = &udc->lock; |
1453 | mEp->device = &udc->gadget.dev; | ||
1454 | mEp->td_pool = udc->td_pool; | 1453 | mEp->td_pool = udc->td_pool; |
1455 | 1454 | ||
1456 | mEp->ep.name = mEp->name; | 1455 | mEp->ep.name = mEp->name; |