Skip to content

Commit

Permalink
hw/ppc: QOM'ify spapr_vio.c
Browse files Browse the repository at this point in the history
Drop the old and empty SysBus init

Signed-off-by: xiaoqiang zhao <zxq_yx_007@163.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
  • Loading branch information
hitmoon authored and dgibson committed Jan 30, 2017
1 parent 09a7eb9 commit 0f358a0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions hw/ppc/spapr_vio.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,21 +538,11 @@ VIOsPAPRBus *spapr_vio_bus_init(void)
return bus;
}

/* Represents sPAPR hcall VIO devices */

static int spapr_vio_bridge_init(SysBusDevice *dev)
{
/* nothing */
return 0;
}

static void spapr_vio_bridge_class_init(ObjectClass *klass, void *data)
{
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
DeviceClass *dc = DEVICE_CLASS(klass);

dc->fw_name = "vdevice";
k->init = spapr_vio_bridge_init;
}

static const TypeInfo spapr_vio_bridge_info = {
Expand Down

0 comments on commit 0f358a0

Please sign in to comment.