diff options
| author | Florian Fainelli <[email protected]> | 2014-09-24 17:55:10 +0000 |
|---|---|---|
| committer | Ralf Baechle <[email protected]> | 2014-11-24 06:44:06 +0000 |
| commit | 717ce646395b8606515563edc5f57b27cf559bee (patch) | |
| tree | e23243188123f97901bbe34c7804f74fe376c29e /drivers/tty/serial/sccnxp.c | |
| parent | MIPS: Loongson: Make platform serial setup always built-in. (diff) | |
| download | kernel-717ce646395b8606515563edc5f57b27cf559bee.tar.gz kernel-717ce646395b8606515563edc5f57b27cf559bee.zip | |
MIPS: Netlogic: handle modular USB case
Commit 1004165f346a ("MIPS: Netlogic: USB support for XLP") and then
commit 9eac3591e78b ("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 <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/7854/
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions
