projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cb32ed
)
of: unittest: Use DEFINE_RES_MEM() to simplify code
author
Zhen Lei
<thunder.leizhen@huawei.com>
Tue, 1 Jun 2021 06:22:23 +0000
(14:22 +0800)
committer
Rob Herring
<robh@kernel.org>
Fri, 4 Jun 2021 22:29:18 +0000
(17:29 -0500)
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>
drivers/of/unittest.c
patch
|
blob
|
history
diff --git
a/drivers/of/unittest.c
b/drivers/of/unittest.c
index
819a20a
..
8c05697
100644
(file)
--- 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",
};