Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mtd: phytium: Resolve some errors when '-Werror' was enabled #233

Merged
merged 1 commit into from
May 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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