From: Zhen Lei Date: Tue, 1 Jun 2021 06:22:23 +0000 (+0800) Subject: of: unittest: Use DEFINE_RES_MEM() to simplify code X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=67c54655b6550c8e1d0f3213991257e9145dfb39;p=linux.git of: unittest: Use DEFINE_RES_MEM() to simplify code No functional change. Signed-off-by: Zhen Lei Link: https://lore.kernel.org/r/20210601062223.9724-1-thunder.leizhen@huawei.com Signed-off-by: Rob Herring --- diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index 819a20acaa939..8c056972a6ddc 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -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", };