From 9fa6e3f07c643bcf62d4ede5d8d508b31a8bf845 Mon Sep 17 00:00:00 2001 From: yuanxia Date: Tue, 28 May 2024 14:40:39 +0800 Subject: [PATCH] mtd: phytium: Resolve some errors when '-Werror' was enabled This patch resolves some errors when '-Werror' was enabled Signed-off-by: yuanxia Signed-off-by: Wang Hanmo --- drivers/mtd/parsers/acpipart_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/parsers/acpipart_core.c b/drivers/mtd/parsers/acpipart_core.c index 4ed29fc5e49b7..7ae9989604bae 100644 --- a/drivers/mtd/parsers/acpipart_core.c +++ b/drivers/mtd/parsers/acpipart_core.c @@ -20,11 +20,10 @@ static int parse_acpi_fixed_partitions(struct mtd_info *master, struct mtd_part_parser_data *data) { struct mtd_partition *parts; - struct acpi_device_id *acpi_id; + const struct acpi_device_id *acpi_id; const char *partname; int nr_parts, i, ret = 0; struct acpi_device *adev; - struct fwnode_handle *child; struct fwnode_handle *child_handle; bool dedicated = true; struct device *dev; @@ -110,7 +109,7 @@ static int parse_acpi_fixed_partitions(struct mtd_info *master, static const struct acpi_device_id parse_acpipart_match_table[] = { /* Generic */ - { "acpi-fixed-partitions", 0 }, + { "acpi-partitions", 0 }, /* Customized */ {}, };