]> Git Repo - qemu.git/blobdiff - hw/lm32/lm32.h
lm32_juart: QOM cast cleanup
[qemu.git] / hw / lm32 / lm32.h
index 236686ef2b554efe846cce86730c1502d35b533a..18aa6fdc15cc6a869858d7a1fc5ad4cb2b299a10 100644 (file)
@@ -1,8 +1,7 @@
 #ifndef HW_LM32_H
 #define HW_LM32_H 1
 
-
-#include "qemu-common.h"
+#include "hw/char/lm32_juart.h"
 
 static inline DeviceState *lm32_pic_init(qemu_irq cpu_irq)
 {
@@ -21,7 +20,7 @@ static inline DeviceState *lm32_juart_init(void)
 {
     DeviceState *dev;
 
-    dev = qdev_create(NULL, "lm32-juart");
+    dev = qdev_create(NULL, TYPE_LM32_JUART);
     qdev_init_nofail(dev);
 
     return dev;
This page took 0.019066 seconds and 4 git commands to generate.