Patchwork Change linking order of SPI and MTD.

login
register
mail settings
Submitter Fabio Estevam
Date May 2, 2012, 5:09 p.m.
Message ID <CAOMZO5DRFJ2LW0gri5M9QTUFvhLKgBDwS3Wj3x=0MztGp71sZg@mail.gmail.com>
Download mbox | patch
Permalink /patch/156494/
State New
Headers show

Comments

Fabio Estevam - May 2, 2012, 5:09 p.m.
On Wed, May 2, 2012 at 11:16 AM, Shawn J. Goff <shawn7400@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:

Patch

--- 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;
                }