lantiq: fix compile error
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 24 Nov 2015 20:12:21 +0000 (20:12 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 24 Nov 2015 20:12:21 +0000 (20:12 +0000)
This fixes a problem introduced in r47624.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 47628

target/linux/lantiq/patches-4.1/0022-MTD-m25p80-allow-loading-mtd-name-from-OF.patch

index 535069c58dbe3bf49cf19acfd13229f5cecb9ce1..25f3fff213999aa3caeb3689b2babf44db65b14f 100644 (file)
@@ -38,7 +38,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        if (data && data->name)
                nor->mtd.name = data->name;
 +      else if (of_mtd_name)
-+              flash->mtd.name = of_mtd_name;
++              nor->mtd.name = of_mtd_name;
  
        /* For some (historical?) reason many platforms provide two different
         * names in flash_platform_data: "name" and "type". Quite often name is