mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
lm32_juart: QOM cast cleanup
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
0ee10242fd
commit
a0b97927e3
3 changed files with 15 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue