Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions arch/riscv/kernel/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ int riscv_of_parent_hartid(struct device_node *node, unsigned long *hartid)
}
}

return -1;
return -ENODEV;
}

unsigned long __init riscv_get_marchid(void)
Expand Down Expand Up @@ -348,12 +348,13 @@ static int c_show(struct seq_file *m, void *v)

if (acpi_disabled) {
node = of_get_cpu_node(cpu_id, NULL);
if (node) {
if (!of_property_read_string(node, "compatible", &compat) &&
strcmp(compat, "riscv"))
seq_printf(m, "uarch\t\t: %s\n", compat);

if (!of_property_read_string(node, "compatible", &compat) &&
strcmp(compat, "riscv"))
seq_printf(m, "uarch\t\t: %s\n", compat);

of_node_put(node);
of_node_put(node);
}
}

seq_printf(m, "mvendorid\t: 0x%lx\n", ci->mvendorid);
Expand Down
Loading