]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: mmp: fix pxa168_device_usb_phy use on aspenite
authorArnd Bergmann <arnd@arndb.de>
Mon, 10 Dec 2018 20:43:02 +0000 (21:43 +0100)
committerOlof Johansson <olof@lixom.net>
Wed, 12 Dec 2018 21:54:44 +0000 (13:54 -0800)
commit9a3bd43ecdc19624951a488312690160c4012350
treef16682da9b1e408c5ffd9a020beb531b211f5af0
parent5cb84adabeb3cc1ebdeb9b18ac00d75d17079183
ARM: mmp: fix pxa168_device_usb_phy use on aspenite

This one ended up in the wrong header file, causing a build failure
on at least one platform:

arch/arm/mach-mmp/aspenite.c: In function 'common_init':
arch/arm/mach-mmp/aspenite.c:260:28: error: 'pxa168_device_usb_phy' undeclared (first use in this function); did you mean 'pxa168_device_ssp5'?

We can just include both the pxa168.h and pxa910.h headers to make
that work, which gets us to the next failure:

arch/arm/mach-mmp/aspenite.o: In function `common_init':
aspenite.c:(.init.text+0x1c0): undefined reference to `pxa168_device_usb_phy'

This is solved by using the matching ifdef check around the
USB device registration, enabling them only when either USB
host or gadget mode are enabled.

Fixes: 3f9d58f85080 ("ARM: mmp: add a pxa-usb-phy device")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-mmp/aspenite.c
arch/arm/mach-mmp/ttc_dkb.c