[PATCH] Change linking order of SPI and MTD.

Fabio Estevam festevam at gmail.com
Wed May 2 13:09:17 EDT 2012


On Wed, May 2, 2012 at 11:16 AM, Shawn J. Goff <shawn7400 at gmail.com> 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;
                }



More information about the linux-mtd mailing list