This patch should contain no functional changes, just moves code
around.
Currently libahci.c and ahci.c are built into a single module,
so there is no need for EXPORT_SYMBOL_GPL()s, yet. Exports will be
added in a subsequent patch.
Signed-off-by: Anton Vorontsov <avorontsov@xxxxxxxxxxxxx>
---
drivers/ata/Makefile | 2 +-
drivers/ata/ahci.c | 2271 +------------------------------------------------
drivers/ata/libahci.c | 2059 ++++++++++++++++++++++++++++++++++++++++++++
drivers/ata/libahci.h | 330 +++++++
4 files changed, 2391 insertions(+), 2271 deletions(-)
create mode 100644 drivers/ata/libahci.c
create mode 100644 drivers/ata/libahci.h
diff --git a/drivers/ata/Makefile b/drivers/ata/Makefile
index b7d4923..75e3abd 100644
--- a/drivers/ata/Makefile
+++ b/drivers/ata/Makefile
@@ -1,7 +1,7 @@
obj-$(CONFIG_ATA) += libata.o
-obj-$(CONFIG_SATA_AHCI) += ahci.o
+obj-$(CONFIG_SATA_AHCI) += libahci.o ahci.o