summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-05-05 23:56:10 +0200
committerSimon Glass <sjg@chromium.org>2015-05-06 12:48:35 -0600
commit26548bb283879a20dbbef8a8baa3737d25c2ac82 (patch)
treebc7463e2576fba90e81da5e043558daab6d73cd6 /drivers/usb
parent3c5497d831fe2450b47eead2c8b57602028ecdea (diff)
downloadtalos-obmc-uboot-26548bb283879a20dbbef8a8baa3737d25c2ac82.tar.gz
talos-obmc-uboot-26548bb283879a20dbbef8a8baa3737d25c2ac82.zip
usb: ohci: Remove unnecessary phcca variable
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/ohci-hcd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index b5676ab05d..07e0848c6e 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -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;
OpenPOWER on IntegriCloud