kernel/3.1[02]: add Winbond W25X05 SPI flash support
[openwrt.git] / target / linux / generic / patches-3.12 / 441-block2mtd_probe.patch
1 --- a/drivers/mtd/devices/block2mtd.c
2 +++ b/drivers/mtd/devices/block2mtd.c
3 @@ -233,6 +233,7 @@ static struct block2mtd_dev *add_device(
4                 /* We might not have rootfs mounted at this point. Try
5                    to resolve the device name by other means. */
6  
7 +               wait_for_device_probe();
8                 dev_t devt = name_to_dev_t(devname);
9                 if (devt)
10                         bdev = blkdev_get_by_dev(devt, mode, dev);