Commit 9a4f5cd0 authored by Anton Blanchard's avatar Anton Blanchard Committed by Michael Ellerman

powerpc: Add printk levels to powernv platform code

Add printk levels to powernv platform code, and convert to
pr_err() etc while here.
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 3e47d147
...@@ -78,7 +78,7 @@ void __init opal_nvram_init(void) ...@@ -78,7 +78,7 @@ void __init opal_nvram_init(void)
} }
nvram_size = be32_to_cpup(nbytes_p); nvram_size = be32_to_cpup(nbytes_p);
printk(KERN_INFO "OPAL nvram setup, %u bytes\n", nvram_size); pr_info("OPAL nvram setup, %u bytes\n", nvram_size);
of_node_put(np); of_node_put(np);
ppc_md.nvram_read = opal_nvram_read; ppc_md.nvram_read = opal_nvram_read;
......
...@@ -105,12 +105,12 @@ int __init early_init_dt_scan_opal(unsigned long node, ...@@ -105,12 +105,12 @@ int __init early_init_dt_scan_opal(unsigned long node,
if (of_flat_dt_is_compatible(node, "ibm,opal-v3")) { if (of_flat_dt_is_compatible(node, "ibm,opal-v3")) {
powerpc_firmware_features |= FW_FEATURE_OPALv2; powerpc_firmware_features |= FW_FEATURE_OPALv2;
powerpc_firmware_features |= FW_FEATURE_OPALv3; powerpc_firmware_features |= FW_FEATURE_OPALv3;
printk("OPAL V3 detected !\n"); pr_info("OPAL V3 detected !\n");
} else if (of_flat_dt_is_compatible(node, "ibm,opal-v2")) { } else if (of_flat_dt_is_compatible(node, "ibm,opal-v2")) {
powerpc_firmware_features |= FW_FEATURE_OPALv2; powerpc_firmware_features |= FW_FEATURE_OPALv2;
printk("OPAL V2 detected !\n"); pr_info("OPAL V2 detected !\n");
} else { } else {
printk("OPAL V1 detected !\n"); pr_info("OPAL V1 detected !\n");
} }
/* Reinit all cores with the right endian */ /* Reinit all cores with the right endian */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment