ec/lenovo/pmh7: Add IORESOURCE_ASSIGNED flag

This makes coccinelle script happy, everyone else sets flags last.

Change-Id: I80f421aeacb6e72fea2265c69cafb2a0d89e5616
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/64697
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Kyösti Mälkki 2022-05-26 18:30:49 +03:00
parent 49b3f84820
commit eae983161e
1 changed files with 1 additions and 1 deletions

View File

@ -107,11 +107,11 @@ static void enable_dev(struct device *dev)
struct resource *resource;
resource = new_resource(dev, EC_LENOVO_PMH7_INDEX);
resource->flags = IORESOURCE_IO | IORESOURCE_FIXED;
resource->base = EC_LENOVO_PMH7_BASE;
resource->size = 16;
resource->align = 5;
resource->gran = 5;
resource->flags = IORESOURCE_IO | IORESOURCE_FIXED | IORESOURCE_ASSIGNED;
pmh7_backlight_enable(conf->backlight_enable);
pmh7_dock_event_enable(conf->dock_event_enable);