update to 2.6.32.29
[oweals/openwrt.git] / target / linux / ar7 / patches-2.6.32 / 920-ar7part.patch
index 984663547c8d5e6380191fac2f279bc026b54400..31e48167244d73eae761f9845c44c3a80b960b24 100644 (file)
  static int create_mtd_partitions(struct mtd_info *master,
                                 struct mtd_partition **pparts,
                                 unsigned long origin)
-@@ -57,6 +63,16 @@ static int create_mtd_partitions(struct 
+@@ -57,6 +63,16 @@ static int create_mtd_partitions(struct
        int retries = 10;
        struct mtd_partition *ar7_parts;
  
 +      const char *prod_id ;
 +      prod_id = prom_getenv("ProductID");
-+      if(prod_id && 
++      if(prod_id &&
 +              (strcmp(prod_id, "CYWL")==0 ||
 +              strcmp(prod_id, "CYWM")==0 ||
 +              strcmp(prod_id, "CYLM")==0 ||