summaryrefslogtreecommitdiff
path: root/src/ec/google/wilco
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2022-05-26 19:03:55 +0300
committerFelix Held <felix-coreboot@felixheld.de>2022-06-24 19:51:12 +0000
commit4e4edf7d60b5206e1ad442b05d4d0b607c2131fb (patch)
treeca4842b726972665a53dac570aab6b6fef266120 /src/ec/google/wilco
parent2a167ffbbfc82e552c8804069986c1091f747105 (diff)
device/resource: Modify some resource allocation instances
These changes made my crude pattern matching work with coccinelle simpler. Change-Id: I83f3ef38b8663640594b4d726838f7a6f96a58a2 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64698 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/ec/google/wilco')
-rw-r--r--src/ec/google/wilco/chip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ec/google/wilco/chip.c b/src/ec/google/wilco/chip.c
index 911eb25074..2243004fda 100644
--- a/src/ec/google/wilco/chip.c
+++ b/src/ec/google/wilco/chip.c
@@ -161,9 +161,9 @@ static void wilco_ec_resource(struct device *dev, int index,
size_t base, size_t size)
{
struct resource *res = new_resource(dev, index);
- res->flags = IORESOURCE_IO | IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
res->base = base;
res->size = size;
+ res->flags = IORESOURCE_IO | IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
}
static void wilco_ec_read_resources(struct device *dev)