[PATCH] Change linking order of SPI and MTD.
Shawn J. Goff
shawn7400 at gmail.com
Tue May 1 16:12:28 EDT 2012
From: "Shawn J. Goff" <shawn7400 at gmail.com>
Currently, UBI initializes before SPI. This is a problem
if you intend to boot to a UBI volume on an SPI device. UBI will
fail to initialize with the following message:
UBI error: ubi_init: UBI error: cannot initialize UBI, error -19
The initialization order is determined by the order the modules are
linked into the kernel, so the fix was to change this order. UBI is
under the MTD tree, so SPI is now linked in before MTD.
Signed-off-by: Shawn J. Goff <shawn7400 at gmail.com>
---
drivers/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/Makefile b/drivers/Makefile
index c07be02..0ccc4b1 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -51,8 +51,8 @@ obj-$(CONFIG_IDE) += ide/
obj-$(CONFIG_SCSI) += scsi/
obj-$(CONFIG_ATA) += ata/
obj-$(CONFIG_TARGET_CORE) += target/
-obj-$(CONFIG_MTD) += mtd/
obj-$(CONFIG_SPI) += spi/
+obj-$(CONFIG_MTD) += mtd/
obj-y += net/
obj-$(CONFIG_ATM) += atm/
obj-$(CONFIG_FUSION) += message/
--
1.7.10
More information about the linux-mtd
mailing list