Commit 67c54655 authored by Zhen Lei's avatar Zhen Lei Committed by Rob Herring

of: unittest: Use DEFINE_RES_MEM() to simplify code

No functional change.
Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210601062223.9724-1-thunder.leizhen@huawei.comSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 7cb32edb
...@@ -1209,11 +1209,7 @@ static void __init of_unittest_match_node(void) ...@@ -1209,11 +1209,7 @@ static void __init of_unittest_match_node(void)
} }
} }
static struct resource test_bus_res = { static struct resource test_bus_res = DEFINE_RES_MEM(0xfffffff8, 2);
.start = 0xfffffff8,
.end = 0xfffffff9,
.flags = IORESOURCE_MEM,
};
static const struct platform_device_info test_bus_info = { static const struct platform_device_info test_bus_info = {
.name = "unittest-bus", .name = "unittest-bus",
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment