mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
of: unittest: Use DEFINE_RES_MEM() to simplify code
No functional change. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Link: https://lore.kernel.org/r/20210601062223.9724-1-thunder.leizhen@huawei.com Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
parent
7cb32edb05
commit
67c54655b6
@ -1209,11 +1209,7 @@ static void __init of_unittest_match_node(void)
|
||||
}
|
||||
}
|
||||
|
||||
static struct resource test_bus_res = {
|
||||
.start = 0xfffffff8,
|
||||
.end = 0xfffffff9,
|
||||
.flags = IORESOURCE_MEM,
|
||||
};
|
||||
static struct resource test_bus_res = DEFINE_RES_MEM(0xfffffff8, 2);
|
||||
static const struct platform_device_info test_bus_info = {
|
||||
.name = "unittest-bus",
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user