[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 09/10] piix: Eliminate pc_init_pci()
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PATCH 09/10] piix: Eliminate pc_init_pci() |
Date: |
Fri, 15 May 2015 14:19:00 -0300 |
The function is not needed anymore, we can simply call pc_init1()
directly.
Signed-off-by: Eduardo Habkost <address@hidden>
---
hw/i386/pc_piix.c | 31 +++++++++++++------------------
1 file changed, 13 insertions(+), 18 deletions(-)
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index cdc0443..01f938f 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -305,11 +305,6 @@ static void pc_init1(MachineState *machine)
}
}
-static void pc_init_pci(MachineState *machine)
-{
- pc_init1(machine);
-}
-
static void pc_compat_2_3(MachineState *machine)
{
}
@@ -421,13 +416,13 @@ static void pc_compat_1_2(MachineState *machine)
static void pc_init_pci_2_3(MachineState *machine)
{
pc_compat_2_3(machine);
- pc_init_pci(machine);
+ pc_init1(machine);
}
static void pc_init_pci_2_2(MachineState *machine)
{
pc_compat_2_2(machine);
- pc_init_pci(machine);
+ pc_init1(machine);
}
/* PC compat function for pc-0.10 to pc-0.13 */
@@ -440,57 +435,57 @@ static void pc_compat_0_13(MachineState *machine)
static void pc_init_pci_2_1(MachineState *machine)
{
pc_compat_2_1(machine);
- pc_init_pci(machine);
+ pc_init1(machine);
}
static void pc_init_pci_2_0(MachineState *machine)
{
pc_compat_2_0(machine);
- pc_init_pci(machine);
+ pc_init1(machine);
}
static void pc_init_pci_1_7(MachineState *machine)
{
pc_compat_1_7(machine);
- pc_init_pci(machine);
+ pc_init1(machine);
}
static void pc_init_pci_1_6(MachineState *machine)
{
pc_compat_1_6(machine);
- pc_init_pci(machine);
+ pc_init1(machine);
}
static void pc_init_pci_1_5(MachineState *machine)
{
pc_compat_1_5(machine);
- pc_init_pci(machine);
+ pc_init1(machine);
}
static void pc_init_pci_1_4(MachineState *machine)
{
pc_compat_1_4(machine);
- pc_init_pci(machine);
+ pc_init1(machine);
}
static void pc_init_pci_1_3(MachineState *machine)
{
pc_compat_1_3(machine);
- pc_init_pci(machine);
+ pc_init1(machine);
}
/* PC machine init function for pc-0.14 to pc-1.2 */
static void pc_init_pci_1_2(MachineState *machine)
{
pc_compat_1_2(machine);
- pc_init_pci(machine);
+ pc_init1(machine);
}
/* PC init function for pc-0.10 to pc-0.13 */
static void pc_init_pci_no_kvmclock(MachineState *machine)
{
pc_compat_0_13(machine);
- pc_init_pci(machine);
+ pc_init1(machine);
}
static void pc_init_isa(MachineState *machine)
@@ -516,7 +511,7 @@ static void pc_xen_hvm_init(MachineState *machine)
{
PCIBus *bus;
- pc_init_pci(machine);
+ pc_init1(machine);
bus = pci_find_primary_bus();
if (bus != NULL) {
@@ -543,7 +538,7 @@ static void pc_i440fx_2_4_machine_options(MachineClass *m)
m->is_default = 1;
}
-DEFINE_PC_MACHINE(v2_4, "pc-i440fx-2.4", pc_init_pci,
+DEFINE_PC_MACHINE(v2_4, "pc-i440fx-2.4", pc_init1,
pc_i440fx_2_4_machine_options)
--
2.1.0
- [Qemu-devel] [PATCH 00/10] pc: Don't use QEMUMachine, simplify compat+init code, Eduardo Habkost, 2015/05/15
- [Qemu-devel] [PATCH 01/10] pc: Define MACHINE_OPTIONS macros consistently for all machines, Eduardo Habkost, 2015/05/15
- [Qemu-devel] [PATCH 02/10] pc: Define machines using a DEFINE_PC_MACHINE macro, Eduardo Habkost, 2015/05/15
- [Qemu-devel] [PATCH 03/10] pc: Convert *_MACHINE_OPTIONS macros into functions, Eduardo Habkost, 2015/05/15
- [Qemu-devel] [PATCH 04/10] pc: Move compat_props setting inside *_machine_options() functions, Eduardo Habkost, 2015/05/15
- [Qemu-devel] [PATCH 05/10] pc: Don't use QEMUMachine anymore, Eduardo Habkost, 2015/05/15
- [Qemu-devel] [PATCH 06/10] pc: Remove qemu_register_pc_machine() function, Eduardo Habkost, 2015/05/15
- [Qemu-devel] [PATCH 07/10] machine: Remove unused fields from QEMUMachine, Eduardo Habkost, 2015/05/15
- [Qemu-devel] [PATCH 08/10] piix: Add kvmclock_enabled, pci_enabled globals, Eduardo Habkost, 2015/05/15
- [Qemu-devel] [PATCH 09/10] piix: Eliminate pc_init_pci(),
Eduardo Habkost <=
- [Qemu-devel] [PATCH 10/10] pc: Generate init functions with a macro, Eduardo Habkost, 2015/05/15