diff mbox series

[1/1] of: unittest: Use DEFINE_RES_MEM() to simplify code

Message ID 20210601062223.9724-1-thunder.leizhen@huawei.com
State Accepted
Commit 67c54655b6550c8e1d0f3213991257e9145dfb39
Headers show
Series [1/1] of: unittest: Use DEFINE_RES_MEM() to simplify code | expand

Commit Message

Leizhen (ThunderTown) June 1, 2021, 6:22 a.m. UTC
No functional change.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

---
 drivers/of/unittest.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

-- 
2.26.0.106.g9fadedd

Comments

Rob Herring June 4, 2021, 9:47 p.m. UTC | #1
On Tue, 01 Jun 2021 14:22:23 +0800, Zhen Lei wrote:
> No functional change.

> 

> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

> ---

>  drivers/of/unittest.c | 6 +-----

>  1 file changed, 1 insertion(+), 5 deletions(-)

> 


Applied, thanks!
diff mbox series

Patch

diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
index 819a20acaa93986..8c056972a6ddc72 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",
 };