修訂 | 57fe9b4d9bd5a024896bb1d2f61cc2a8096b3e57 (tree) |
---|---|
時間 | 2018-12-13 22:48:02 |
作者 | Mao Zhongyi <maozhongyi@cmss...> |
Commiter | Peter Maydell |
xen_backend: remove xen_sysdev_init() function
The init function doesn't do anything at all, so we
just omit it.
Cc: sstabellini@kernel.org
Cc: anthony.perard@citrix.com
Cc: xen-devel@lists.xenproject.org
Cc: peter.maydell@linaro.org
Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Message-id: 20181130093852.20739-21-maozhongyi@cmss.chinamobile.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
@@ -809,11 +809,6 @@ static const TypeInfo xensysbus_info = { | ||
809 | 809 | } |
810 | 810 | }; |
811 | 811 | |
812 | -static int xen_sysdev_init(SysBusDevice *dev) | |
813 | -{ | |
814 | - return 0; | |
815 | -} | |
816 | - | |
817 | 812 | static Property xen_sysdev_properties[] = { |
818 | 813 | {/* end of property list */}, |
819 | 814 | }; |
@@ -821,9 +816,7 @@ static Property xen_sysdev_properties[] = { | ||
821 | 816 | static void xen_sysdev_class_init(ObjectClass *klass, void *data) |
822 | 817 | { |
823 | 818 | DeviceClass *dc = DEVICE_CLASS(klass); |
824 | - SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass); | |
825 | 819 | |
826 | - k->init = xen_sysdev_init; | |
827 | 820 | dc->props = xen_sysdev_properties; |
828 | 821 | dc->bus_type = TYPE_XENSYSBUS; |
829 | 822 | } |