hw/arm: QOM'ify pxa2xx_pic.c
Remove the empty 'pxa2xx_pic_initfn' and it's setup code in the 'pxa2xx_pic_class_init' Signed-off-by: xiaoqiang zhao <zxq_yx_007@163.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
16fb31a382
commit
08ba3fde1d
@ -310,17 +310,10 @@ static VMStateDescription vmstate_pxa2xx_pic_regs = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int pxa2xx_pic_initfn(SysBusDevice *dev)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void pxa2xx_pic_class_init(ObjectClass *klass, void *data)
|
static void pxa2xx_pic_class_init(ObjectClass *klass, void *data)
|
||||||
{
|
{
|
||||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||||
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
|
|
||||||
|
|
||||||
k->init = pxa2xx_pic_initfn;
|
|
||||||
dc->desc = "PXA2xx PIC";
|
dc->desc = "PXA2xx PIC";
|
||||||
dc->vmsd = &vmstate_pxa2xx_pic_regs;
|
dc->vmsd = &vmstate_pxa2xx_pic_regs;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user