diff options
-rw-r--r-- | drivers/mtd/ubi/debug.h | 8 | ||||
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 3 |
2 files changed, 2 insertions, 9 deletions
diff --git a/drivers/mtd/ubi/debug.h b/drivers/mtd/ubi/debug.h index efefc549fee2..ef97c12fe9b8 100644 --- a/drivers/mtd/ubi/debug.h +++ b/drivers/mtd/ubi/debug.h | |||
@@ -21,14 +21,6 @@ | |||
21 | #ifndef __UBI_DEBUG_H__ | 21 | #ifndef __UBI_DEBUG_H__ |
22 | #define __UBI_DEBUG_H__ | 22 | #define __UBI_DEBUG_H__ |
23 | 23 | ||
24 | struct ubi_ec_hdr; | ||
25 | struct ubi_vid_hdr; | ||
26 | struct ubi_volume; | ||
27 | struct ubi_vtbl_record; | ||
28 | struct ubi_scan_volume; | ||
29 | struct ubi_scan_leb; | ||
30 | struct ubi_mkvol_req; | ||
31 | |||
32 | #ifdef CONFIG_MTD_UBI_DEBUG | 24 | #ifdef CONFIG_MTD_UBI_DEBUG |
33 | #include <linux/random.h> | 25 | #include <linux/random.h> |
34 | 26 | ||
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index d0e321885fd6..fd19f8d3bce8 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h | |||
@@ -44,7 +44,6 @@ | |||
44 | 44 | ||
45 | #include "ubi-media.h" | 45 | #include "ubi-media.h" |
46 | #include "scan.h" | 46 | #include "scan.h" |
47 | #include "debug.h" | ||
48 | 47 | ||
49 | /* Maximum number of supported UBI devices */ | 48 | /* Maximum number of supported UBI devices */ |
50 | #define UBI_MAX_DEVICES 32 | 49 | #define UBI_MAX_DEVICES 32 |
@@ -478,6 +477,8 @@ struct ubi_device { | |||
478 | struct ubi_debug_info *dbg; | 477 | struct ubi_debug_info *dbg; |
479 | }; | 478 | }; |
480 | 479 | ||
480 | #include "debug.h" | ||
481 | |||
481 | extern struct kmem_cache *ubi_wl_entry_slab; | 482 | extern struct kmem_cache *ubi_wl_entry_slab; |
482 | extern const struct file_operations ubi_ctrl_cdev_operations; | 483 | extern const struct file_operations ubi_ctrl_cdev_operations; |
483 | extern const struct file_operations ubi_cdev_operations; | 484 | extern const struct file_operations ubi_cdev_operations; |