]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/nand/nand.c
Merge branch 'master' of git://git.denx.de/u-boot-blackfin
[u-boot] / drivers / mtd / nand / nand.c
index 9065fa91c6f5c6de4adfde822c293c0cba7b9941..c0e068ab7d5f9c08973961055242a4bb581798cd 100644 (file)
@@ -54,8 +54,10 @@ 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_DEVICE
                        /*