Searched hist:"7 dfe2a4c07a9363fa280eeaab4a564b94e26ab14" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/usb/host/ |
| H A D | ehci-mxs.c | 7dfe2a4c07a9363fa280eeaab4a564b94e26ab14 Thu Jan 25 19:43:58 UTC 2018 Daniel Schwierzeck <daniel.schwierzeck@gmail.com> UPSTREAM: usb: ehci: mxs: fix swapped argument in ehci_writel()
ehci_writel() swaps the arguments for address and value. One call in ehci-mxs ignores that.
This fixes the warning:
drivers/usb/host/ehci-mxs.c: In function ?ehci_hcd_stop?: drivers/usb/host/ehci-mxs.c:159:19: error: initialization makes integer from pointer without a cast [-Werror=int-conversion] ehci_writel(tmp, &hcor->or_usbcmd); ^ arch/arm/include/asm/io.h:117:34: note: in definition of macro ?writel? #define writel(v,c) ({ u32 __v = v; __iowmb(); __arch_putl(__v,c); __v; }) ^ drivers/usb/host/ehci-mxs.c:159:2: note: in expansion of macro ?ehci_writel? ^~~~~~~~~~~
Change-Id: I9b7bccbd906f21bb51e91bae97c3f9f08e199493 Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 6f7c92db4c7d1e45503fb10e60caa1ec2bb18d10)
|