Skip to content

Commit

Permalink
usb: chipidea: remove unused field "regs" from ci13xxx
Browse files Browse the repository at this point in the history
The old implementation used global hw_bank, the new implementation uses
udc-local hw_bank. This field seems to be a leftover from previous coding
experiments.

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 5f36e23 commit f8c1376
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion drivers/usb/chipidea/ci.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,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 */
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/chipidea/ci13xxx_msm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit f8c1376

Please sign in to comment.