]> git.sur5r.net Git - u-boot/commit
usb: sunxi: access ahb_reset0_cfg in CCM using its offset
authorVasily Khoruzhick <anarsoul@gmail.com>
Thu, 14 Jun 2018 06:19:34 +0000 (23:19 -0700)
committerMarek Vasut <marex@denx.de>
Thu, 14 Jun 2018 10:57:19 +0000 (12:57 +0200)
commitb9f34757db5dcde9ccfa6ce35705b025bc4843fc
tree1062f943044a0bd351a58ac7e23a51885463589b
parent11bb62768de4c1508202ce9dd572f17fc3d95779
usb: sunxi: access ahb_reset0_cfg in CCM using its offset

struct sunxi_ccm_reg doesn't have ahb_reset0_cfg on sun4i and sun5i,
thus compilation fails with:

drivers/usb/host/ohci-sunxi.c:96:26: error: 'struct sunxi_ccm_reg' has
no member named 'ahb_reset0_cfg'

Access this reg using its offset to fix this issue.

Fixes commit 1ed9c1118 ("usb: sunxi: ehci: get rid of ifdefs")
and commit 56830cee3 ("usb: sunxi: ohci: get rid of ifdefs")

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
drivers/usb/host/ehci-sunxi.c
drivers/usb/host/ohci-sunxi.c