Skip to content

Commit

Permalink
mtd: phytium: Resolve some errors when '-Werror' was enabled
Browse files Browse the repository at this point in the history
This patch resolves some errors when '-Werror' was enabled

Signed-off-by: yuanxia <[email protected]>
Signed-off-by: Wang Hanmo <[email protected]>
  • Loading branch information
yuanxia0927 authored and Avenger-285714 committed May 28, 2024
1 parent 899e802 commit 49c49cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/mtd/parsers/acpipart_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 */
{},
};
Expand Down

0 comments on commit 49c49cd

Please sign in to comment.