@@ -27,6 +27,7 @@
#include "sysemu/qtest.h"
#include "qemu/cutils.h"
#include "qemu/log.h"
+#include "hw/qdev-deprecated.h"
static struct {
hwaddr io_base;
@@ -1768,6 +1769,8 @@ static PXA2xxI2SState *pxa2xx_i2s_init(MemoryRegion *sysmem,
{
PXA2xxI2SState *s = g_new0(PXA2xxI2SState, 1);
+ qdev_warn_deprecated_function_used();
+
s->irq = irq;
s->rx_dma = rx_dma;
s->tx_dma = tx_dma;
@@ -20,6 +20,7 @@
/* FIXME: For graphic_rotate. Should probably be done in common code. */
#include "sysemu/sysemu.h"
#include "framebuffer.h"
+#include "hw/qdev-deprecated.h"
struct DMAChannel {
uint32_t branch;
@@ -1011,6 +1012,8 @@ PXA2xxLCDState *pxa2xx_lcdc_init(MemoryRegion *sysmem,
PXA2xxLCDState *s;
DisplaySurface *surface;
+ qdev_warn_deprecated_function_used();
+
s = (PXA2xxLCDState *) g_malloc0(sizeof(PXA2xxLCDState));
s->invalidated = 1;
s->irq = irq;
@@ -17,6 +17,7 @@
#include "migration/vmstate.h"
#include "hw/arm/pxa.h"
#include "ui/console.h"
+#include "hw/qdev-deprecated.h"
/*
* Keypad
@@ -316,6 +317,8 @@ PXA2xxKeyPadState *pxa27x_keypad_init(MemoryRegion *sysmem,
{
PXA2xxKeyPadState *s;
+ qdev_warn_deprecated_function_used();
+
s = (PXA2xxKeyPadState *) g_malloc0(sizeof(PXA2xxKeyPadState));
s->irq = irq;
This code hasn't been QOM'ified yet. Warn the user. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> --- hw/arm/pxa2xx.c | 3 +++ hw/display/pxa2xx_lcd.c | 3 +++ hw/input/pxa2xx_keypad.c | 3 +++ 3 files changed, 9 insertions(+)