linux_dsm_epyc7002/arch/mips/netlogic/xlp
Florian Fainelli 717ce64639 MIPS: Netlogic: handle modular USB case
Commit 1004165f34 ("MIPS: Netlogic: USB support for XLP") and then
commit 9eac3591e7 ("MIPS: Netlogic: Add support for USB on XLP2xx")
added usb-init and usb-init-xlp2 as objects to build when CONFIG_USB is
enabled.

If CONFIG_USB is made modular, these two files will also get built as
modules (obj-m), which will result in the following linking failure:

ERROR: "nlm_io_base" [arch/mips/netlogic/xlp/usb-init.ko] undefined!
ERROR: "nlm_nodes" [arch/mips/netlogic/xlp/usb-init-xlp2.ko] undefined!
ERROR: "nlm_set_pic_extra_ack" [arch/mips/netlogic/xlp/usb-init-xlp2.ko]
undefined!
ERROR: "xlp_socdev_to_node" [arch/mips/netlogic/xlp/usb-init-xlp2.ko]
undefined!
ERROR: "nlm_io_base" [arch/mips/netlogic/xlp/usb-init-xlp2.ko]
undefined!

Just check whether CONFIG_USB is defined for this build, and if that is
the case, add these objects to the list of built-in object files.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: ganesanr@broadcom.com
Cc: jchandra@broadcom.com
Patchwork: https://patchwork.linux-mips.org/patch/7854/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2014-11-24 07:44:06 +01:00
..
ahci-init-xlp2.c MIPS: Netlogic: XLP9XX on-chip SATA support 2014-05-30 16:51:47 +02:00
ahci-init.c MIPS: Netlogic: Support for XLP3XX on-chip SATA 2014-05-30 16:51:25 +02:00
cop2-ex.c MIPS: Netlogic: COP2 save/restore code 2013-06-13 17:46:41 +02:00
dt.c Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2014-06-09 18:10:34 -07:00
Makefile MIPS: Netlogic: handle modular USB case 2014-11-24 07:44:06 +01:00
nlm_hal.c MIPS: Netlogic: Update XLP9XX/2XX core freq calculation 2014-05-30 16:50:13 +02:00
setup.c MIPS: Netlogic: Add support for XLP5XX 2014-05-30 16:50:38 +02:00
usb-init-xlp2.c MIPS: Netlogic: XLP9XX USB support 2014-01-24 22:39:49 +01:00
usb-init.c MIPS: Netlogic: Add support for USB on XLP2xx 2013-09-03 23:22:20 +02:00
wakeup.c MIPS: Netlogic: Add support for XLP5XX 2014-05-30 16:50:38 +02:00