projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e47b29
)
net/dsa/dsa.c: increment chip_index during of_node handling on dsa_of_probe()
author
Fabian Godehardt
<fg@emlix.com>
Fri, 16 May 2014 04:21:44 +0000
(06:21 +0200)
committer
David S. Miller
<davem@davemloft.net>
Fri, 16 May 2014 20:56:33 +0000
(16:56 -0400)
Adding more than one chip on device-tree currently causes the probing
routine to always use the first chips data pointer.
Signed-off-by: Fabian Godehardt <fg@emlix.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c
patch
|
blob
|
blame
|
history
diff --git
a/net/dsa/dsa.c
b/net/dsa/dsa.c
index 0eb5d5e76dfbe1f99537e8a561f1671389c09e16..5db37cef50a9ccd80c642118f54dd4ecf04219b8 100644
(file)
--- a/
net/dsa/dsa.c
+++ b/
net/dsa/dsa.c
@@
-406,8
+406,9
@@
static int dsa_of_probe(struct platform_device *pdev)
goto out_free;
}
- chip_index =
0
;
+ chip_index =
-1
;
for_each_available_child_of_node(np, child) {
+ chip_index++;
cd = &pd->chip[chip_index];
cd->mii_bus = &mdio_bus->dev;
This page took
0.025324 seconds
and
5
git commands to generate.