aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorMaxim Levitsky <maximlevitsky@gmail.com>2010-02-22 13:39:28 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-02-26 12:03:15 -0500
commit3bd456576f22acd55fb6c3d3d4261131821f5a3b (patch)
treeedad5546c2bacf2d54cd04840f5e1eda676d5661 /include/linux/mtd
parentbb315f749f8c800cb8bf8d7dabc4b5fbab97b328 (diff)
mtd: create unlocked versions of {get,put}_mtd_device
Use these only if you know that you already hold mtd_table_mutex Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/mtd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index ba53ecca107c..11d8e68d17c0 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -289,8 +289,9 @@ extern int add_mtd_device(struct mtd_info *mtd);
289extern int del_mtd_device (struct mtd_info *mtd); 289extern int del_mtd_device (struct mtd_info *mtd);
290 290
291extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num); 291extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num);
292extern int __get_mtd_device(struct mtd_info *mtd);
293extern void __put_mtd_device(struct mtd_info *mtd);
292extern struct mtd_info *get_mtd_device_nm(const char *name); 294extern struct mtd_info *get_mtd_device_nm(const char *name);
293
294extern void put_mtd_device(struct mtd_info *mtd); 295extern void put_mtd_device(struct mtd_info *mtd);
295 296
296 297