Revert "mtd: fix 'part' field data corruption in mtd_info"

This reverts commit 6f2bf9c5dd which is
commit 37c5f9e80e upstream.

It breaks the ABI and will be brought back later in an ABI-safe way.

Bug: 161946584
Change-Id: Ia8f3f31c12c00cf304855fc77e033e7fd3b00498
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2022-11-29 13:31:53 +00:00
parent e6a51ad94c
commit 887fa8f059

View File

@@ -388,8 +388,10 @@ struct mtd_info {
/* List of partitions attached to this MTD device */
struct list_head partitions;
struct mtd_part part;
struct mtd_master master;
union {
struct mtd_part part;
struct mtd_master master;
};
};
static inline struct mtd_info *mtd_get_master(struct mtd_info *mtd)