diff options
Diffstat (limited to 'arch/mips/kernel')
| -rw-r--r-- | arch/mips/kernel/prom.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c index 452d4350ce42..e303cb1ef2f4 100644 --- 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) | |||
| 64 | panic("device tree not present"); | 64 | panic("device tree not present"); |
| 65 | 65 | ||
| 66 | strlcpy(of_ids[0].compatible, bus0, sizeof(of_ids[0].compatible)); | 66 | strlcpy(of_ids[0].compatible, bus0, sizeof(of_ids[0].compatible)); |
| 67 | strlcpy(of_ids[1].compatible, bus1, sizeof(of_ids[1].compatible)); | 67 | if (bus1) { |
| 68 | strlcpy(of_ids[1].compatible, bus1, | ||
| 69 | sizeof(of_ids[1].compatible)); | ||
| 70 | } | ||
| 68 | 71 | ||
| 69 | if (of_platform_populate(NULL, of_ids, NULL, NULL)) | 72 | if (of_platform_populate(NULL, of_ids, NULL, NULL)) |
| 70 | panic("failed to populate DT"); | 73 | panic("failed to populate DT"); |
