projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f7f031
)
MIPS: Let __dt_register_buses accept a single bus type
author
Kevin Cernekee
<
[email protected]
>
Thu, 25 Dec 2014 17:49:07 +0000
(09:49 -0800)
committer
Ralf Baechle
<
[email protected]
>
Wed, 1 Apr 2015 15:21:38 +0000
(17:21 +0200)
Some machines only have one bus type to register (e.g. "simple-bus").
Signed-off-by: Kevin Cernekee <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/8845/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/kernel/prom.c
patch
|
blob
|
history
diff --git
a/arch/mips/kernel/prom.c
b/arch/mips/kernel/prom.c
index 452d4350ce424bd19f07896a61df1d6da22a342c..e303cb1ef2f41d5ecc27c8735b2f6e211143b4c8 100644
(file)
--- a/
arch/mips/kernel/prom.c
+++ b/
arch/mips/kernel/prom.c
@@
-64,7
+64,10
@@
int __init __dt_register_buses(const char *bus0, const char *bus1)
panic("device tree not present");
strlcpy(of_ids[0].compatible, bus0, sizeof(of_ids[0].compatible));
- strlcpy(of_ids[1].compatible, bus1, sizeof(of_ids[1].compatible));
+ if (bus1) {
+ strlcpy(of_ids[1].compatible, bus1,
+ sizeof(of_ids[1].compatible));
+ }
if (of_platform_populate(NULL, of_ids, NULL, NULL))
panic("failed to populate DT");