usb: gadget: pxa25x_udc cleanup
authorArnd Bergmann <arnd@arndb.de>
Thu, 28 Jan 2016 16:17:03 +0000 (17:17 +0100)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:29 +0000 (15:14 +0200)
commita77af20e9e67caf79bd961c3d12938051b2c560e
tree67f5906a740f4659673e3f7d00f0c1d31aacb38a
parentc5418a0b98c1ff7ae6f3d0b248d9120368156f4a
usb: gadget: pxa25x_udc cleanup

This removes the dependency on the mach/hardware.h header file
from the pxa25x_udc driver after the register definitions were
already unified in the previous patch.

Following the model of pxa27x_udc (and basically all other drivers
in the kernel), we define the register numbers as offsets from
the register base address and use accessor functions to read/write
them.

For the moment, this still leaves the direct pointer dereference
in place, instead of using readl/writel, so this patch should
not be changing the behavior of the driver, other than using
ioremap() on the platform resource to replace the hardcoded
virtual address pointers.

Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/pxa25x_udc.c
drivers/usb/gadget/udc/pxa25x_udc.h
This page took 0.025101 seconds and 5 git commands to generate.