diff options
Diffstat (limited to 'arch/powerpc/kernel/setup-common.c')
| -rw-r--r-- | arch/powerpc/kernel/setup-common.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 93ee3703b42f..ca00fbb97cf8 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c | |||
| @@ -687,7 +687,7 @@ int check_legacy_ioport(unsigned long base_port) | |||
| 687 | return ret; | 687 | return ret; |
| 688 | parent = of_get_parent(np); | 688 | parent = of_get_parent(np); |
| 689 | if (parent) { | 689 | if (parent) { |
| 690 | if (strcmp(parent->type, "isa") == 0) | 690 | if (of_node_is_type(parent, "isa")) |
| 691 | ret = 0; | 691 | ret = 0; |
| 692 | of_node_put(parent); | 692 | of_node_put(parent); |
| 693 | } | 693 | } |
| @@ -800,7 +800,7 @@ static __init void print_system_info(void) | |||
| 800 | #ifdef CONFIG_PPC_BOOK3S_64 | 800 | #ifdef CONFIG_PPC_BOOK3S_64 |
| 801 | pr_info("ppc64_pft_size = 0x%llx\n", ppc64_pft_size); | 801 | pr_info("ppc64_pft_size = 0x%llx\n", ppc64_pft_size); |
| 802 | #endif | 802 | #endif |
| 803 | #ifdef CONFIG_PPC_STD_MMU_32 | 803 | #ifdef CONFIG_PPC_BOOK3S_32 |
| 804 | pr_info("Hash_size = 0x%lx\n", Hash_size); | 804 | pr_info("Hash_size = 0x%lx\n", Hash_size); |
| 805 | #endif | 805 | #endif |
| 806 | pr_info("phys_mem_size = 0x%llx\n", | 806 | pr_info("phys_mem_size = 0x%llx\n", |
| @@ -830,7 +830,7 @@ static __init void print_system_info(void) | |||
| 830 | if (htab_hash_mask) | 830 | if (htab_hash_mask) |
| 831 | pr_info("htab_hash_mask = 0x%lx\n", htab_hash_mask); | 831 | pr_info("htab_hash_mask = 0x%lx\n", htab_hash_mask); |
| 832 | #endif | 832 | #endif |
| 833 | #ifdef CONFIG_PPC_STD_MMU_32 | 833 | #ifdef CONFIG_PPC_BOOK3S_32 |
| 834 | if (Hash) | 834 | if (Hash) |
| 835 | pr_info("Hash = 0x%p\n", Hash); | 835 | pr_info("Hash = 0x%p\n", Hash); |
| 836 | if (Hash_mask) | 836 | if (Hash_mask) |
| @@ -974,6 +974,7 @@ void __init setup_arch(char **cmdline_p) | |||
| 974 | ppc_md.setup_arch(); | 974 | ppc_md.setup_arch(); |
| 975 | 975 | ||
| 976 | setup_barrier_nospec(); | 976 | setup_barrier_nospec(); |
| 977 | setup_spectre_v2(); | ||
| 977 | 978 | ||
| 978 | paging_init(); | 979 | paging_init(); |
| 979 | 980 | ||
