We always follow the same pattern when registering
non-coalesced portio:
- portio_list_init()
- portio_list_add()
Factor these 2 operations in a single helper named
portio_list_register(). Since both calls become local
to ioport.c, reduce their scope by declaring them static.
Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
---
hw/audio/adlib.c | 4 ++--
hw/display/vga.c | 4 ++--
hw/dma/i82374.c | 7 +++----
hw/isa/isa-bus.c | 6 ++----
hw/watchdog/wdt_ib700.c | 4 ++--
include/exec/ioport.h | 10 ++++------
softmmu/ioport.c | 21 ++++++++++++++-------
7 files changed, 29 insertions(+), 27 deletions(-)