From: Vasily Khoruzhick Date: Sun, 17 Jun 2018 16:13:42 +0000 (-0700) Subject: usb: sunxi: ohci: make ohci_t the first member in private data X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=ebbc23a0495cd189cda2760f66cc0195dd030a19;p=u-boot.git usb: sunxi: ohci: make ohci_t the first member in private data ohci-hcd casts priv_data pointer to (ohci_t *), thus it must be the first member in private data struct. Fixes 831cc98b1 ("usb: sunxi: Simplify ccm reg base code") Signed-off-by: Vasily Khoruzhick --- diff --git a/drivers/usb/host/ohci-sunxi.c b/drivers/usb/host/ohci-sunxi.c index e13f6ec9a4..db6f438275 100644 --- a/drivers/usb/host/ohci-sunxi.c +++ b/drivers/usb/host/ohci-sunxi.c @@ -33,9 +33,9 @@ struct ohci_sunxi_cfg { }; struct ohci_sunxi_priv { + ohci_t ohci; struct sunxi_ccm_reg *ccm; u32 *reset0_cfg; - ohci_t ohci; int ahb_gate_mask; /* Mask of ahb_gate0 clk gate bits for this hcd */ int usb_gate_mask; /* Mask of usb_clk_cfg clk gate bits for this hcd */ struct phy phy;