X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fmtd%2Fnand%2Fnand.c;h=c0e068ab7d5f9c08973961055242a4bb581798cd;hb=3388db2cd72d85717596158131b3e48efe2acfea;hp=d3691151f0513eb3c613d43dc29bbcf1ad4a7ab4;hpb=ccb71dfac94d4a9ef161a59a51b4f31d7d9e4747;p=u-boot diff --git a/drivers/mtd/nand/nand.c b/drivers/mtd/nand/nand.c index d3691151f0..c0e068ab7d 100644 --- a/drivers/mtd/nand/nand.c +++ b/drivers/mtd/nand/nand.c @@ -54,10 +54,12 @@ static void nand_init_chip(struct mtd_info *mtd, struct nand_chip *nand, if (nand_scan(mtd, maxchips) == 0) { if (!mtd->name) mtd->name = (char *)default_nand_name; +#ifdef CONFIG_NEEDS_MANUAL_RELOC else mtd->name += gd->reloc_off; +#endif -#ifdef CONFIG_MTD_PARTITIONS +#ifdef CONFIG_MTD_DEVICE /* * Add MTD device so that we can reference it later * via the mtdcore infrastructure (e.g. ubi).