diff options
author | Vasily Khoruzhick | 2018-06-17 09:13:42 -0700 |
---|---|---|
committer | Marek Vasut | 2018-06-29 10:52:07 +0200 |
commit | ebbc23a0495cd189cda2760f66cc0195dd030a19 (patch) | |
tree | 9357b358d44d7354a12feb867caa34cb5fbf6c39 /drivers/usb/host/ohci-sunxi.c | |
parent | fb77a9e3537039664ad42992bef6688869eda7c1 (diff) |
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 <anarsoul@gmail.com>
Diffstat (limited to 'drivers/usb/host/ohci-sunxi.c')
-rw-r--r-- | drivers/usb/host/ohci-sunxi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-sunxi.c b/drivers/usb/host/ohci-sunxi.c index e13f6ec9a4e..db6f438275c 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; |