Merge l2-mtd/next into l2-mtd/master
authorBrian Norris <computersforpeace@gmail.com>
Tue, 19 Aug 2014 18:57:23 +0000 (11:57 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 19 Aug 2014 18:57:23 +0000 (11:57 -0700)
drivers/mtd/chips/cfi_cmdset_0002.c
include/linux/mtd/nand.h

index 6da141a..c50d8cf 100644 (file)
@@ -1434,6 +1434,10 @@ static int cfi_amdstd_otp_walk(struct mtd_info *mtd, loff_t from, size_t len,
 
                                mutex_lock(&chip->mutex);
                                ret = get_chip(map, chip, base, FL_LOCKING);
+                               if (ret) {
+                                       mutex_unlock(&chip->mutex);
+                                       return ret;
+                               }
 
                                /* Enter lock register command */
                                cfi_send_gen_cmd(0xAA, cfi->addr_unlock1,
index b7c1199..8acb307 100644 (file)
@@ -950,7 +950,7 @@ static inline int jedec_feature(struct nand_chip *chip)
                : 0;
 }
 
-/**
+/*
  * struct nand_sdr_timings - SDR NAND chip timings
  *
  * This struct defines the timing requirements of a SDR NAND chip.