usb: ohci-nxp: enable compile-testing
authorArnd Bergmann <arnd@arndb.de>
Fri, 9 Aug 2019 14:40:27 +0000 (16:40 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 15 Aug 2019 19:32:56 +0000 (21:32 +0200)
commit23565baecee4fb5ac6f1d43e9b0685cca9438204
treec912eebe300fa05edcd706717f05dbb4f6ac2036
parentd45331b00ddb179e291766617259261c112db872
usb: ohci-nxp: enable compile-testing

The driver hardcodes a hardware I/O address the way one should
generally not do, and this prevents both compile-testing, and
moving the platform to CONFIG_ARCH_MULTIPLATFORM.

Change the code to be independent of the machine headers
to allow those two. Removing the hardcoded address would
be hard and is not necessary, so leave that in place for now.

Link: https://lore.kernel.org/r/20190809144043.476786-2-arnd@arndb.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/usb/host/Kconfig
drivers/usb/host/ohci-nxp.c