sf_mtd_info.size = flash->size;
sf_mtd_info.priv = flash;
sf_mtd_info.size = flash->size;
sf_mtd_info.priv = flash;
+ sf_mtd_info.dev = flash->dev;
/* Only uniform flash devices for now */
sf_mtd_info.numeraseregions = 0;
/* Only uniform flash devices for now */
sf_mtd_info.numeraseregions = 0;
if (!mtd->name)
mtd->name = info->name;
if (!mtd->name)
mtd->name = info->name;
mtd->priv = nor;
mtd->type = MTD_NORFLASH;
mtd->writesize = 1;
mtd->priv = nor;
mtd->type = MTD_NORFLASH;
mtd->writesize = 1;
return ret;
mtd->name = "spi-flash";
return ret;
mtd->name = "spi-flash";
mtd->priv = nor;
mtd->type = MTD_NORFLASH;
mtd->writesize = 1;
mtd->priv = nor;
mtd->type = MTD_NORFLASH;
mtd->writesize = 1;