ide: core: add cleanup function
commitc9f086418a255f386e1c4d2c1418c032eb349537
authorLi Qiang <liq3ea@gmail.com>
Thu, 16 Mar 2017 00:50:14 +0000 (15 20:50 -0400)
committerJohn Snow <jsnow@redhat.com>
Thu, 16 Mar 2017 00:50:14 +0000 (15 20:50 -0400)
treeae6656d1c9aa9d57915f5edb68a1cab3025a9202
parent44a109c1b38ddc9f853c33861875d0a85262de4f
ide: core: add cleanup function

As the pci ahci can be hotplug and unplug, in the ahci unrealize
function it should free all the resource once allocated in the
realized function. This patch add ide_exit to free the resource.

Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Message-id: 1488449293-80280-3-git-send-email-liqiang6-s@360.cn
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/core.c
include/hw/ide/internal.h