| .. | .. |
|---|
| 51 | 51 | {"9.5", 0x22}, |
|---|
| 52 | 52 | {"9.6", 0x23}, |
|---|
| 53 | 53 | {"10.0", 0x24}, |
|---|
| 54 | + {"11.0", 0x25}, |
|---|
| 54 | 55 | {NULL, 0}, |
|---|
| 55 | 56 | }; |
|---|
| 56 | 57 | |
|---|
| .. | .. |
|---|
| 89 | 90 | |
|---|
| 90 | 91 | void __init setup_cpuinfo(void) |
|---|
| 91 | 92 | { |
|---|
| 92 | | - cpu = (struct device_node *) of_find_node_by_type(NULL, "cpu"); |
|---|
| 93 | + cpu = of_get_cpu_node(0, NULL); |
|---|
| 93 | 94 | if (!cpu) |
|---|
| 94 | | - pr_err("You don't have cpu!!!\n"); |
|---|
| 95 | + pr_err("You don't have cpu or are missing cpu reg property!!!\n"); |
|---|
| 95 | 96 | |
|---|
| 96 | 97 | pr_info("%s: initialising\n", __func__); |
|---|
| 97 | 98 | |
|---|
| .. | .. |
|---|
| 117 | 118 | if (cpuinfo.mmu_privins) |
|---|
| 118 | 119 | pr_warn("%s: Stream instructions enabled" |
|---|
| 119 | 120 | " - USERSPACE CAN LOCK THIS KERNEL!\n", __func__); |
|---|
| 121 | + |
|---|
| 122 | + of_node_put(cpu); |
|---|
| 120 | 123 | } |
|---|
| 121 | 124 | |
|---|
| 122 | 125 | void __init setup_cpuinfo_clk(void) |
|---|