diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-14 16:33:38 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-27 22:29:02 +0100 |
commit | e29b124610f9b92c315e4655f52dec36d23de247 (patch) | |
tree | 5821851e4fad35be4f4bb03f3b84207b93b8679a /hw/ide/ahci.c | |
parent | b6a5ab27fbc42731877b0297062dccd4239874ff (diff) | |
download | qemu-e29b124610f9b92c315e4655f52dec36d23de247.zip qemu-e29b124610f9b92c315e4655f52dec36d23de247.tar.gz qemu-e29b124610f9b92c315e4655f52dec36d23de247.tar.bz2 |
hw/ide: Rename ide_register_restart_cb -> ide_bus_register_restart_cb
ide_register_restart_cb() operates on a IDEBus; rename it as
ide_bus_register_restart_cb() to emphasize its first argument
is a IDEBus.
Mechanical change using:
$ sed -i -e 's/ide_register_restart_cb/ide_bus_register_restart_cb/g' \
$(git grep -l ide_register_restart_cb)
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230215112712.23110-13-philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/ide/ahci.c')
-rw-r--r-- | hw/ide/ahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index f338a55..316dbb9 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -1560,7 +1560,7 @@ void ahci_realize(AHCIState *s, DeviceState *qdev, AddressSpace *as, int ports) ad->port_no = i; ad->port.dma = &ad->dma; ad->port.dma->ops = &ahci_dma_ops; - ide_register_restart_cb(&ad->port); + ide_bus_register_restart_cb(&ad->port); } g_free(irqs); } |