提交 ebbc23a0 编写于 作者: V Vasily Khoruzhick 提交者: Marek Vasut

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 831cc98b ("usb: sunxi: Simplify ccm reg base code")
Signed-off-by: NVasily Khoruzhick <anarsoul@gmail.com>
上级 fb77a9e3
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册