linux/arch/mips/netlogic/xlp
Florian Fainelli 3964917c6b MIPS: Netlogic: handle modular AHCI builds
Commits a951440971 ("MIPS: Netlogic: Support for XLP3XX on-chip SATA")
and fedfcb1137 ("MIPS: Netlogic: XLP9XX on-chip SATA support") added
ahci-init and ahci-init-xlp2 as objects to build when CONFIG_SATA_AHCI
is enabled.

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

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

Just check whether CONFIG_SATA_AHCI 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/7855/
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 AHCI builds 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