hw/ide/piix: Convert reset handler to DeviceReset
commitee358e919e385fdc79d59d0d47b4a81e349cd5c9
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 10 Oct 2019 13:15:22 +0000 (10 15:15 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 15 Oct 2019 21:18:08 +0000 (15 18:18 -0300)
tree053d59a04480fbc9f08ee8f77e101f2fff0538fc
parentfd52c20f2c58152f6f23bed658474ae1d1a2fe52
hw/ide/piix: Convert reset handler to DeviceReset

The PIIX/IDE is a PCI device within a PIIX chipset, it will be reset
when the PCI bus it stands on is reset.

Convert its reset handler into a proper Device reset method.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20191010131527.32513-4-philmd@redhat.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/ide/piix.c