From patchwork Tue May 1 20:12:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Change linking order of SPI and MTD. Date: Tue, 01 May 2012 10:12:28 -0000 From: "Shawn J. Goff" X-Patchwork-Id: 156208 Message-Id: <1335903148-29539-1-git-send-email-shawn7400@gmail.com> To: linux-mtd@lists.infradead.org Cc: "Shawn J. Goff" From: "Shawn J. Goff" 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 --- 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/