]> xenbits.xensource.com Git - qemu-xen.git/commit
hw/arm/palm.c: Encapsulate misc GPIO handling in a device
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Jul 2020 13:36:12 +0000 (14:36 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Jul 2020 13:36:12 +0000 (14:36 +0100)
commitad938fc1d53c99b264ecfc81291a4814204ff3dd
tree2ccbdb19bbc3cb03906e0d938890c3df74ace204
parentc1abd462d99d8d94dd2c94eb9bb33108859407b2
hw/arm/palm.c: Encapsulate misc GPIO handling in a device

Replace the free-floating set of IRQs and palmte_onoff_gpios()
function with a simple QOM device that encapsulates this
behaviour.

This fixes Coverity issue CID 1421944, which points out that
the memory returned by qemu_allocate_irqs() is leaked.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20200628214230.2592-3-peter.maydell@linaro.org
hw/arm/palm.c