]> git.openfabrics.org - ~emulex/infiniband.git/commit
usb: gadget: s3c-hsotg: fix build on x86 and other architectures
authorMatt Porter <mporter@linaro.org>
Mon, 3 Feb 2014 15:29:09 +0000 (10:29 -0500)
committerFelipe Balbi <balbi@ti.com>
Tue, 18 Feb 2014 16:52:52 +0000 (10:52 -0600)
commit1a7ed5bec407478b9ce5e3267708110277851614
tree697172938ca0e39ff209ccfe4638e986e5c0546e
parent1af54b7a40ca9bbd549e626be01870caa3f0299d
usb: gadget: s3c-hsotg: fix build on x86 and other architectures

The readsl and writesl I/O accessors are only defined on some
architectures. The driver currently depends on CONFIG_ARM because
the build breaks on x86, in particular. Switch to use of ioread32_rep
and iowrite32_rep to fix build on all architectures and remove the
CONFIG_ARM dependency.

Also update printk formatting to handle a long long dma_addr_t to avoid
warnings on !32-bit architectures.

Signed-off-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/Kconfig
drivers/usb/gadget/s3c-hsotg.c