From patchwork Wed May 2 17:09:17 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: Wed, 02 May 2012 07:09:17 -0000 From: Fabio Estevam X-Patchwork-Id: 156494 Message-Id: To: "Shawn J. Goff" Cc: linux-mtd@lists.infradead.org On Wed, May 2, 2012 at 11:16 AM, Shawn J. Goff wrote: >> Could EPROBE_DEFER help in this case? > > I hadn't known about EPROBE_DEFER until now. If it does help, > that's probably a better solution. I'll look into it, but it'll be > at least a few days before I'm able to spend time on it. If you have a chance, please try the patch below: --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c @@ -1223,7 +1223,7 @@ static int __init ubi_init(void) mtd = open_mtd_device(p->name); if (IS_ERR(mtd)) { - err = PTR_ERR(mtd); + err = -EPROBE_DEFER; goto out_detach; }