powerpc: Get rid of ppc_md.init_early()
It is now called right after platform probe, so the probe function can just do the job. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
此提交包含在:

提交者
Michael Ellerman

父節點
5657138404
當前提交
f2d576948d
@@ -620,9 +620,9 @@ static void pSeries_cmo_feature_init(void)
|
||||
/*
|
||||
* Early initialization. Relocation is on but do not reference unbolted pages
|
||||
*/
|
||||
static void __init pSeries_init_early(void)
|
||||
static void __init pseries_init(void)
|
||||
{
|
||||
pr_debug(" -> pSeries_init_early()\n");
|
||||
pr_debug(" -> pseries_init()\n");
|
||||
|
||||
#ifdef CONFIG_HVC_CONSOLE
|
||||
if (firmware_has_feature(FW_FEATURE_LPAR))
|
||||
@@ -639,7 +639,7 @@ static void __init pSeries_init_early(void)
|
||||
pSeries_cmo_feature_init();
|
||||
iommu_init_early_pSeries();
|
||||
|
||||
pr_debug(" <- pSeries_init_early()\n");
|
||||
pr_debug(" <- pseries_init()\n");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -691,6 +691,8 @@ static int __init pSeries_probe(void)
|
||||
pr_debug("Machine is%s LPAR !\n",
|
||||
(powerpc_firmware_features & FW_FEATURE_LPAR) ? "" : " not");
|
||||
|
||||
pseries_init();
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -709,7 +711,6 @@ define_machine(pseries) {
|
||||
.name = "pSeries",
|
||||
.probe = pSeries_probe,
|
||||
.setup_arch = pSeries_setup_arch,
|
||||
.init_early = pSeries_init_early,
|
||||
.init_IRQ = pseries_init_irq,
|
||||
.show_cpuinfo = pSeries_show_cpuinfo,
|
||||
.log_error = pSeries_log_error,
|
||||
|
新增問題並參考
封鎖使用者