aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/chips/gen_probe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/chips/gen_probe.c')
-rw-r--r--drivers/mtd/chips/gen_probe.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/mtd/chips/gen_probe.c b/drivers/mtd/chips/gen_probe.c
index e2dc96441e05..3b9a2843c5f8 100644
--- a/drivers/mtd/chips/gen_probe.c
+++ b/drivers/mtd/chips/gen_probe.c
@@ -155,8 +155,7 @@ static struct cfi_private *genprobe_ident_chips(struct map_info *map, struct chi
155 pchip->start = (i << cfi.chipshift); 155 pchip->start = (i << cfi.chipshift);
156 pchip->state = FL_READY; 156 pchip->state = FL_READY;
157 init_waitqueue_head(&pchip->wq); 157 init_waitqueue_head(&pchip->wq);
158 spin_lock_init(&pchip->_spinlock); 158 mutex_init(&pchip->mutex);
159 pchip->mutex = &pchip->_spinlock;
160 } 159 }
161 } 160 }
162 161
@@ -242,17 +241,19 @@ static struct mtd_info *check_cmd_set(struct map_info *map, int primary)
242 /* We need these for the !CONFIG_MODULES case, 241 /* We need these for the !CONFIG_MODULES case,
243 because symbol_get() doesn't work there */ 242 because symbol_get() doesn't work there */
244#ifdef CONFIG_MTD_CFI_INTELEXT 243#ifdef CONFIG_MTD_CFI_INTELEXT
245 case 0x0001: 244 case P_ID_INTEL_EXT:
246 case 0x0003: 245 case P_ID_INTEL_STD:
247 case 0x0200: 246 case P_ID_INTEL_PERFORMANCE:
248 return cfi_cmdset_0001(map, primary); 247 return cfi_cmdset_0001(map, primary);
249#endif 248#endif
250#ifdef CONFIG_MTD_CFI_AMDSTD 249#ifdef CONFIG_MTD_CFI_AMDSTD
251 case 0x0002: 250 case P_ID_AMD_STD:
251 case P_ID_SST_OLD:
252 case P_ID_WINBOND:
252 return cfi_cmdset_0002(map, primary); 253 return cfi_cmdset_0002(map, primary);
253#endif 254#endif
254#ifdef CONFIG_MTD_CFI_STAA 255#ifdef CONFIG_MTD_CFI_STAA
255 case 0x0020: 256 case P_ID_ST_ADV:
256 return cfi_cmdset_0020(map, primary); 257 return cfi_cmdset_0020(map, primary);
257#endif 258#endif
258 default: 259 default: