]> git.baikalelectronics.ru Git - uboot.git/commit
usb: ehci: mxs: fix swapped argument in ehci_writel()
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Thu, 25 Jan 2018 19:43:58 +0000 (20:43 +0100)
committerMarek Vasut <marex@denx.de>
Thu, 25 Jan 2018 19:59:20 +0000 (20:59 +0100)
commit77d582d88462d2ad2c8fc273ef4e27b087fbdfc9
treef5681ebff028a8f7dfea10e17842a4e4b991401a
parent7d58124b146dd090c8c08c4a83df71642186e96d
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?
  ^~~~~~~~~~~

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
drivers/usb/host/ehci-mxs.c