aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorFrank Rowand <frank.rowand@sonymobile.com>2015-03-14 03:02:31 -0400
committerGrant Likely <grant.likely@linaro.org>2015-03-29 03:56:18 -0400
commit3db316d00bfa60c673c54f27cd5edc329a3b28b5 (patch)
tree1f4bde1a4f073a3bda68430df711f1a1f3f19ba6 /drivers/of
parenta6bb121e16ae1e1cedc8cf37616a4d13c5a9a65b (diff)
of/unittest: reduce checkpatch noise - line after declarations
Fix warnings pointed out by checkpatch. No bug fixes, but reduce the number of checkpatch warnings so that future problems will stand out better. Signed-off-by: Frank Rowand <frank.rowand@sonymobile.com> Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/unittest.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
index 276d2ada16e9..9ecf8529fe29 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
@@ -295,6 +295,7 @@ static void __init of_selftest_parse_phandle_with_args(void)
295 295
296 for (i = 0; i < 8; i++) { 296 for (i = 0; i < 8; i++) {
297 bool passed = true; 297 bool passed = true;
298
298 rc = of_parse_phandle_with_args(np, "phandle-list", 299 rc = of_parse_phandle_with_args(np, "phandle-list",
299 "#phandle-cells", i, &args); 300 "#phandle-cells", i, &args);
300 301
@@ -554,6 +555,7 @@ static void __init of_selftest_parse_interrupts(void)
554 555
555 for (i = 0; i < 4; i++) { 556 for (i = 0; i < 4; i++) {
556 bool passed = true; 557 bool passed = true;
558
557 args.args_count = 0; 559 args.args_count = 0;
558 rc = of_irq_parse_one(np, i, &args); 560 rc = of_irq_parse_one(np, i, &args);
559 561
@@ -574,6 +576,7 @@ static void __init of_selftest_parse_interrupts(void)
574 576
575 for (i = 0; i < 4; i++) { 577 for (i = 0; i < 4; i++) {
576 bool passed = true; 578 bool passed = true;
579
577 args.args_count = 0; 580 args.args_count = 0;
578 rc = of_irq_parse_one(np, i, &args); 581 rc = of_irq_parse_one(np, i, &args);
579 582
@@ -626,6 +629,7 @@ static void __init of_selftest_parse_interrupts_extended(void)
626 629
627 for (i = 0; i < 7; i++) { 630 for (i = 0; i < 7; i++) {
628 bool passed = true; 631 bool passed = true;
632
629 rc = of_irq_parse_one(np, i, &args); 633 rc = of_irq_parse_one(np, i, &args);
630 634
631 /* Test the values from tests-phandle.dtsi */ 635 /* Test the values from tests-phandle.dtsi */
@@ -918,6 +922,7 @@ static int __init selftest_data_add(void)
918 np = selftest_data_node->child; 922 np = selftest_data_node->child;
919 while (np) { 923 while (np) {
920 struct device_node *next = np->sibling; 924 struct device_node *next = np->sibling;
925
921 np->parent = of_root; 926 np->parent = of_root;
922 attach_node_and_children(np); 927 attach_node_and_children(np);
923 np = next; 928 np = next;