diff options
author | Dmitry Pervushin <dpervushin@embeddedalley.com> | 2009-04-29 11:29:44 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-06-02 06:53:35 -0400 |
commit | 518ceef0c9ca97023e45ae46aedaefa240c690a6 (patch) | |
tree | 6086ce9a6177bd0e4ef4da50e0205bbc8a5e5cc3 /drivers/mtd/ubi/ubi.h | |
parent | 0e0ee1cc33de8f0cc603269b354085dee340afa0 (diff) |
UBI: remove built-in gluebi
Remove built-in gluebi support. This is a preparation for a
standalone glubi module support
Signed-off-by: Dmitry Pervushin <dpervushin@embeddedalley.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index 86e1a4e0ab01..82da62bde413 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h | |||
@@ -231,10 +231,6 @@ struct ubi_volume_desc; | |||
231 | * @changing_leb: %1 if the atomic LEB change ioctl command is in progress | 231 | * @changing_leb: %1 if the atomic LEB change ioctl command is in progress |
232 | * @direct_writes: %1 if direct writes are enabled for this volume | 232 | * @direct_writes: %1 if direct writes are enabled for this volume |
233 | * | 233 | * |
234 | * @gluebi_desc: gluebi UBI volume descriptor | ||
235 | * @gluebi_refcount: reference count of the gluebi MTD device | ||
236 | * @gluebi_mtd: MTD device description object of the gluebi MTD device | ||
237 | * | ||
238 | * The @corrupted field indicates that the volume's contents is corrupted. | 234 | * The @corrupted field indicates that the volume's contents is corrupted. |
239 | * Since UBI protects only static volumes, this field is not relevant to | 235 | * Since UBI protects only static volumes, this field is not relevant to |
240 | * dynamic volumes - it is user's responsibility to assure their data | 236 | * dynamic volumes - it is user's responsibility to assure their data |
@@ -278,17 +274,6 @@ struct ubi_volume { | |||
278 | unsigned int updating:1; | 274 | unsigned int updating:1; |
279 | unsigned int changing_leb:1; | 275 | unsigned int changing_leb:1; |
280 | unsigned int direct_writes:1; | 276 | unsigned int direct_writes:1; |
281 | |||
282 | #ifdef CONFIG_MTD_UBI_GLUEBI | ||
283 | /* | ||
284 | * Gluebi-related stuff may be compiled out. | ||
285 | * Note: this should not be built into UBI but should be a separate | ||
286 | * ubimtd driver which works on top of UBI and emulates MTD devices. | ||
287 | */ | ||
288 | struct ubi_volume_desc *gluebi_desc; | ||
289 | int gluebi_refcount; | ||
290 | struct mtd_info gluebi_mtd; | ||
291 | #endif | ||
292 | }; | 277 | }; |
293 | 278 | ||
294 | /** | 279 | /** |
@@ -517,17 +502,6 @@ int ubi_calc_data_len(const struct ubi_device *ubi, const void *buf, | |||
517 | int ubi_check_volume(struct ubi_device *ubi, int vol_id); | 502 | int ubi_check_volume(struct ubi_device *ubi, int vol_id); |
518 | void ubi_calculate_reserved(struct ubi_device *ubi); | 503 | void ubi_calculate_reserved(struct ubi_device *ubi); |
519 | 504 | ||
520 | /* gluebi.c */ | ||
521 | #ifdef CONFIG_MTD_UBI_GLUEBI | ||
522 | int ubi_create_gluebi(struct ubi_device *ubi, struct ubi_volume *vol); | ||
523 | int ubi_destroy_gluebi(struct ubi_volume *vol); | ||
524 | void ubi_gluebi_updated(struct ubi_volume *vol); | ||
525 | #else | ||
526 | #define ubi_create_gluebi(ubi, vol) 0 | ||
527 | #define ubi_destroy_gluebi(vol) 0 | ||
528 | #define ubi_gluebi_updated(vol) | ||
529 | #endif | ||
530 | |||
531 | /* eba.c */ | 505 | /* eba.c */ |
532 | int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, | 506 | int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, |
533 | int lnum); | 507 | int lnum); |