]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
usb: ohci: Remove unnecessary phcca variable
authorHans de Goede <hdegoede@redhat.com>
Tue, 5 May 2015 21:56:10 +0000 (23:56 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:37:16 +0000 (22:37 +0200)
This is a preparation patch for adding driver-model support.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Marek Vasut <marex@denx.de>
drivers/usb/host/ohci-hcd.c

index b5676ab05db680c112d3bc3db74e8d165b243f53..07e0848c6ece36ad8e1bad1ed90c5cd969cc5b7f 100644 (file)
@@ -107,8 +107,6 @@ static struct pci_device_id ehci_pci_ids[] = {
 static ohci_t gohci;
 /* this must be aligned to a 256 byte boundary */
 struct ohci_hcca ghcca[1];
-/* a pointer to the aligned storage */
-struct ohci_hcca *phcca;
 
 static inline u32 roothub_a(struct ohci *hc)
        { return ohci_readl(&hc->regs->roothub.a); }
@@ -1760,10 +1758,9 @@ int usb_lowlevel_init(int index, enum usb_init_type init, void **controller)
                err("HCCA not aligned!!");
                return -1;
        }
-       phcca = &ghcca[0];
-       info("aligned ghcca %p", phcca);
-       gohci.hcca = phcca;
-       memset(phcca, 0, sizeof(struct ohci_hcca));
+       gohci.hcca = &ghcca[0];
+       info("aligned ghcca %p", gohci.hcca);
+       memset(gohci.hcca, 0, sizeof(struct ohci_hcca));
 
        gohci.disabled = 1;
        gohci.sleeping = 0;