This patch drops "regs" field of the ci13xxx structure and "device" field of ci13xxx_ep, both of which are not used for anything. Signed-off-by: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx> fixup with remove-unused Signed-off-by: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx> --- drivers/usb/chipidea/ci.h | 1 - drivers/usb/chipidea/ci13xxx_msm.c | 2 +- drivers/usb/chipidea/udc.c | 1 - drivers/usb/chipidea/udc.h | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/chipidea/ci.h b/drivers/usb/chipidea/ci.h index 9498401..6674841 100644 --- a/drivers/usb/chipidea/ci.h +++ b/drivers/usb/chipidea/ci.h @@ -58,7 +58,6 @@ struct hw_bank { /* CI13XXX UDC descriptor & global resources */ struct ci13xxx { spinlock_t lock; /* ctrl register bank access */ - void __iomem *regs; /* registers address space */ struct dma_pool *qh_pool; /* DMA pool for queue heads */ struct dma_pool *td_pool; /* DMA pool for transfer descs */ diff --git a/drivers/usb/chipidea/ci13xxx_msm.c b/drivers/usb/chipidea/ci13xxx_msm.c index 9b09f0c..958069e 100644 --- a/drivers/usb/chipidea/ci13xxx_msm.c +++ b/drivers/usb/chipidea/ci13xxx_msm.c @@ -15,7 +15,7 @@ #include "ci.h" -#define MSM_USB_BASE (udc->regs) +#define MSM_USB_BASE (udc->hw_bank.abs) static void ci13xxx_msm_notify_event(struct ci13xxx *udc, unsigned event) { diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 8986f80..4c1fde9 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c @@ -1536,7 +1536,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 78eec97..cbbf14e 100644 --- a/drivers/usb/chipidea/udc.h +++ b/drivers/usb/chipidea/udc.h @@ -89,7 +89,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