]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: dsps: fix build on i386 when COMPILE_TEST is set
authorTony Lindgren <tony@atomide.com>
Wed, 25 Mar 2015 21:18:37 +0000 (14:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 17:09:53 +0000 (19:09 +0200)
commit93b4fe32503da9216ef4e20a0548a517a7dab5b5
treef33c583f908d0a4976effd60ceed789fce945da1
parent7fef6d5c133f616b421317399673f0efed239528
usb: musb: dsps: fix build on i386 when COMPILE_TEST is set

Commit c79a937422bc ("usb: musb: Fix fifo reads for dm816x with musb_dsps")
fixed a USB error on dm816x, but introduced a new build error on i386
when COMPILE_TEST is set:

drivers/usb/musb/musb_dsps.c: In function ‘dsps_read_fifo32’:
drivers/usb/musb/musb_dsps.c:624:3: error: implicit declaration of function
‘readsl’ [-Werror=implicit-function-declaration]
readsl(fifo, dst, len >> 2);

Let's fix this by using ioread32_rep() instead of readsl() as that's
more portable.

Fixes: c79a937422bc ("usb: musb: Fix fifo reads for dm816x with musb_dsps")
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Bin Liu <binmlist@gmail.com>
Cc: Brian Hutchinson <b.hutchman@gmail.com>
Cc: George Cherian <george.cherian@ti.com>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_dsps.c