Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
3c3c8e36
Commit
3c3c8e36
authored
Feb 11, 2015
by
Rob Herring
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'grant/devicetree/next' into for-next
parents
ffe24b28
fca8ba4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
drivers/of/unittest.c
drivers/of/unittest.c
+0
-15
No files found.
drivers/of/unittest.c
View file @
3c3c8e36
...
...
@@ -30,11 +30,6 @@ static struct selftest_results {
int
failed
;
}
selftest_results
;
#define NO_OF_NODES 3
static
struct
device_node
*
nodes
[
NO_OF_NODES
];
static
int
last_node_index
;
static
bool
selftest_live_tree
;
#define selftest(result, fmt, ...) ({ \
bool failed = !(result); \
if (failed) { \
...
...
@@ -833,13 +828,6 @@ static int attach_node_and_children(struct device_node *np)
return
0
;
}
/* Children of the root need to be remembered for removal */
if
(
np
->
parent
==
of_root
)
{
if
(
WARN_ON
(
last_node_index
>=
NO_OF_NODES
))
return
-
EINVAL
;
nodes
[
last_node_index
++
]
=
np
;
}
child
=
np
->
child
;
np
->
child
=
NULL
;
...
...
@@ -902,10 +890,7 @@ static int __init selftest_data_add(void)
}
if
(
!
of_root
)
{
/* enabling flag for removing nodes */
selftest_live_tree
=
true
;
of_root
=
selftest_data_node
;
for_each_of_allnodes
(
np
)
__of_attach_node_sysfs
(
np
);
of_aliases
=
of_find_node_by_path
(
"/aliases"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment