diff options
| author | Maxim Levitsky <maximlevitsky@gmail.com> | 2010-02-22 13:39:28 -0500 |
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-02-26 12:03:15 -0500 |
| commit | 3bd456576f22acd55fb6c3d3d4261131821f5a3b (patch) | |
| tree | edad5546c2bacf2d54cd04840f5e1eda676d5661 /include/linux/mtd | |
| parent | bb315f749f8c800cb8bf8d7dabc4b5fbab97b328 (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.h | 3 |
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); | |||
| 289 | extern int del_mtd_device (struct mtd_info *mtd); | 289 | extern int del_mtd_device (struct mtd_info *mtd); |
| 290 | 290 | ||
| 291 | extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num); | 291 | extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num); |
| 292 | extern int __get_mtd_device(struct mtd_info *mtd); | ||
| 293 | extern void __put_mtd_device(struct mtd_info *mtd); | ||
| 292 | extern struct mtd_info *get_mtd_device_nm(const char *name); | 294 | extern struct mtd_info *get_mtd_device_nm(const char *name); |
| 293 | |||
| 294 | extern void put_mtd_device(struct mtd_info *mtd); | 295 | extern void put_mtd_device(struct mtd_info *mtd); |
| 295 | 296 | ||
| 296 | 297 | ||
