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

of: unittest: Use DEFINE_RES_MEM() to simplify code

parent 7cb32edb
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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",
};