commit | 02757df2ad2d5dfc96482e2cdfa046f439dafc3d | [log] [tgz] |
---|---|---|
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | Thu Sep 25 22:20:25 2014 -0700 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Thu Oct 23 16:41:25 2014 +0200 |
tree | e1d3fe8b901f3a5caab1ebdafeddf612383a01ce | |
parent | 8faa2f8571e399ba486bad00e25b6c9b22b6fd9a [diff] |
qdev: gpio: Re-implement qdev_connect_gpio QOM style Re-implement as a link setter. This should allow the QOM framework to keep track of ref counts properly etc. We need to add a default parent for the connecting input incase it's coming from a non-qdev source. We simply parent the IRQ to the machine in this case. Reviewed-by: Alexander Graf <agraf@suse.de> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>