diff options
author | Marc-André Lureau | 2016-10-22 11:52:58 +0200 |
---|---|---|
committer | Paolo Bonzini | 2016-10-24 15:27:21 +0200 |
commit | c39860e6dc90f6ee2e82ee078f978c5d7f3df86a (patch) | |
tree | 7af723a578b9f33ee172254b20fd9bbdd519cd0c /hw/arm/pxa2xx.c | |
parent | vhost-user: only initialize queue 0 CharBackend (diff) | |
download | qemu-c39860e6dc90f6ee2e82ee078f978c5d7f3df86a.tar.gz qemu-c39860e6dc90f6ee2e82ee078f978c5d7f3df86a.tar.xz qemu-c39860e6dc90f6ee2e82ee078f978c5d7f3df86a.zip |
char: replace qemu_chr_claim/release with qemu_chr_fe_init/deinit
Now that all front end use qemu_chr_fe_init(), we can move chardev
claiming in init(), and add a function deinit() to release the chardev
and cleanup handlers.
The qemu_chr_fe_claim_no_fail() for property are gone, since the
property will raise an error instead. In other cases, where there is
already an error path, an error is raised instead. Finally, other cases
are handled by &error_abort in qemu_chr_fe_init().
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20161022095318.17775-19-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/arm/pxa2xx.c')
-rw-r--r-- | hw/arm/pxa2xx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/arm/pxa2xx.c b/hw/arm/pxa2xx.c index 798c05bf29..cd9837914f 100644 --- a/hw/arm/pxa2xx.c +++ b/hw/arm/pxa2xx.c @@ -1976,7 +1976,6 @@ static void pxa2xx_fir_realize(DeviceState *dev, Error **errp) PXA2xxFIrState *s = PXA2XX_FIR(dev); if (s->chr.chr) { - qemu_chr_fe_claim_no_fail(s->chr.chr); qemu_chr_fe_set_handlers(&s->chr, pxa2xx_fir_is_empty, pxa2xx_fir_rx, pxa2xx_fir_event, s, NULL); } |