]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
pseries: Remove unused callbacks from sPAPR VIO bus state
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 20 Oct 2016 04:29:25 +0000 (15:29 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 27 Oct 2016 22:36:58 +0000 (09:36 +1100)
The original QOMification of the spapr VIO devices in 3954d33 "spapr:
convert to QEMU Object Model (v2)" moved some callbacks from the
VIOsPAPRBus structure to the VIOsPAPRDeviceClass.  Except, that it
forgot to actually remove them from the VIOsPAPRBus structure (which
still exists, though it doesn't fulfill quite the same function as it
did pre-QOM).

This patch removes those now unused callback fields.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Thomas Huth <thuth@redhat.com>
include/hw/ppc/spapr_vio.h

index 40d0e5f6a39f3eb9bff0dc8483ae761f01e6d3f9..0b025fd66b427c1d9f89c6ba7cc0b61ba1da639d 100644 (file)
@@ -76,8 +76,6 @@ struct VIOsPAPRDevice {
 struct VIOsPAPRBus {
     BusState bus;
     uint32_t next_reg;
-    int (*init)(VIOsPAPRDevice *dev);
-    int (*devnode)(VIOsPAPRDevice *dev, void *fdt, int node_off);
 };
 
 extern VIOsPAPRBus *spapr_vio_bus_init(void);