usb: gadget: net2280: remove fiforegs as it is unused
authorMian Yousaf Kaukab <yousaf.kaukab@intel.com>
Mon, 2 Feb 2015 09:55:24 +0000 (10:55 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Mar 2015 20:33:30 +0000 (15:33 -0500)
Remove fiforegs from struct net2280 and net2280_ep as it is unused.
By the way, ep->fiforegs = &dev->fiforegs[i] assignment is incorrect.
It should be ep->fiforegs = &dev->fiforegs[ne[i]], but it doesn't
matter now.

Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/net2280.c
drivers/usb/gadget/udc/net2280.h

index b7024dc..d51430f 100644 (file)
@@ -1996,11 +1996,9 @@ static void usb_reinit_338x(struct net2280 *dev)
                        ep->regs = (struct net2280_ep_regs __iomem *)
                                (((void __iomem *)&dev->epregs[ne[i]]) +
                                ep_reg_addr[i]);
-                       ep->fiforegs = &dev->fiforegs[i];
                } else {
                        ep->cfg = &dev->epregs[i];
                        ep->regs = &dev->epregs[i];
-                       ep->fiforegs = &dev->fiforegs[i];
                }
 
                ep->fifo_size = (i != 0) ? 2048 : 512;
@@ -3380,8 +3378,6 @@ static int net2280_probe(struct pci_dev *pdev, const struct pci_device_id *id)
                u32 usbstat;
                dev->usb_ext = (struct usb338x_usb_ext_regs __iomem *)
                                                        (base + 0x00b4);
-               dev->fiforegs = (struct usb338x_fifo_regs __iomem *)
-                                                       (base + 0x0500);
                dev->llregs = (struct usb338x_ll_regs __iomem *)
                                                        (base + 0x0700);
                dev->ll_lfps_regs = (struct usb338x_ll_lfps_regs __iomem *)
index ac8d5a2..4dff60d 100644 (file)
@@ -96,7 +96,6 @@ struct net2280_ep {
        struct net2280_ep_regs                  __iomem *regs;
        struct net2280_dma_regs                 __iomem *dma;
        struct net2280_dma                      *dummy;
-       struct usb338x_fifo_regs __iomem *fiforegs;
        dma_addr_t                              td_dma; /* of dummy */
        struct net2280                          *dev;
        unsigned long                           irqs;
@@ -181,7 +180,6 @@ struct net2280 {
        struct net2280_dma_regs         __iomem *dma;
        struct net2280_dep_regs         __iomem *dep;
        struct net2280_ep_regs          __iomem *epregs;
-       struct usb338x_fifo_regs        __iomem *fiforegs;
        struct usb338x_ll_regs          __iomem *llregs;
        struct usb338x_ll_lfps_regs     __iomem *ll_lfps_regs;
        struct usb338x_ll_tsn_regs      __iomem *ll_tsn_regs;