diff mbox

[RFC,v0,3/8] xilinx_axidma: Added missing TypeInfo

Message ID 5156cf130f826dee3a376c88313c3240078210db.1339578989.git.peter.crosthwaite@petalogix.com
State New
Headers show

Commit Message

Peter A. G. Crosthwaite June 13, 2012, 9:38 a.m. UTC
Will fold into previous patch on next revision, but made seperate for review
of interdiff

Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
---
 hw/xilinx_axidma.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

Comments

Paolo Bonzini June 13, 2012, 10:05 a.m. UTC | #1
Il 13/06/2012 11:38, Peter A. G. Crosthwaite ha scritto:
> Will fold into previous patch on next revision, but made seperate for review
> of interdiff
> 
> Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
> ---
>  hw/xilinx_axidma.c |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/hw/xilinx_axidma.c b/hw/xilinx_axidma.c
> index b82c02e..267b19b 100644
> --- a/hw/xilinx_axidma.c
> +++ b/hw/xilinx_axidma.c
> @@ -521,9 +521,16 @@ static TypeInfo axidma_info = {
>      }
>  };
>  
> +static TypeInfo axidma_peer_info = {
> +    .name          = TYPE_XILINX_AXIDMA_PEER,
> +    .parent        = TYPE_INTERFACE,
> +    .instance_size = sizeof(struct XilinxAXIDMAPeerIface),
> +};
> +
>  static void xilinx_axidma_register_types(void)
>  {
>      type_register_static(&axidma_info);
> +    type_register_static(&axidma_peer_info);
>  }
>  
>  type_init(xilinx_axidma_register_types)
> 

Oops, thanks.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
diff mbox

Patch

diff --git a/hw/xilinx_axidma.c b/hw/xilinx_axidma.c
index b82c02e..267b19b 100644
--- a/hw/xilinx_axidma.c
+++ b/hw/xilinx_axidma.c
@@ -521,9 +521,16 @@  static TypeInfo axidma_info = {
     }
 };
 
+static TypeInfo axidma_peer_info = {
+    .name          = TYPE_XILINX_AXIDMA_PEER,
+    .parent        = TYPE_INTERFACE,
+    .instance_size = sizeof(struct XilinxAXIDMAPeerIface),
+};
+
 static void xilinx_axidma_register_types(void)
 {
     type_register_static(&axidma_info);
+    type_register_static(&axidma_peer_info);
 }
 
 type_init(xilinx_axidma_register_types)