kernel: update kernel 4.1 to version 4.1.34
[openwrt/openwrt.git] / target / linux / rb532 / patches-4.1 / 002-rb532_nand_fixup.patch
index 5b1dd5110468747ef6edee3782666d2d9eef41fb..6f885997fc6825c03a7522e7b5c125fe24cc61fd 100644 (file)
@@ -2,7 +2,7 @@
 +++ b/arch/mips/rb532/devices.c
 @@ -140,6 +140,19 @@ static struct platform_device cf_slot0 =
  };
-
  /* Resources and device for NAND */
 +
 +/*
 +
  static int rb532_dev_ready(struct mtd_info *mtd)
  {
-       return gpio_get_value(GPIO_RDY);
+       return gpio_get_value(GPIO_RDY);
 @@ -254,6 +267,16 @@ static struct platform_device *rb532_dev
  /* NAND definitions */
  #define NAND_CHIP_DELAY 25
-
 +static int rb532_nand_fixup(struct mtd_info *mtd)
 +{
 +      struct nand_chip *chip = mtd->priv;
 +
  static void __init rb532_nand_setup(void)
  {
-       switch (mips_machtype) {
+       switch (mips_machtype) {
 @@ -272,6 +295,7 @@ static void __init rb532_nand_setup(void
-       rb532_nand_data.chip.nr_partitions = ARRAY_SIZE(rb532_partition_info);
-       rb532_nand_data.chip.partitions = rb532_partition_info;
-       rb532_nand_data.chip.chip_delay = NAND_CHIP_DELAY;
+       rb532_nand_data.chip.nr_partitions = ARRAY_SIZE(rb532_partition_info);
+       rb532_nand_data.chip.partitions = rb532_partition_info;
+       rb532_nand_data.chip.chip_delay = NAND_CHIP_DELAY;
 +      rb532_nand_data.chip.chip_fixup = &rb532_nand_fixup;
  }