From 04d8dbb102684808e5b670bb6fc26d1b4f2ed5dd Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Wed, 26 Aug 2020 14:43:28 -0400 Subject: nios2_iic: Use TYPE_ALTERA_IIC constant This will make future conversion to use OBJECT_DECLARE* easier. Signed-off-by: Eduardo Habkost Reviewed-by: Li Qiang Message-Id: <20200826184334.4120620-3-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost --- hw/intc/nios2_iic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw') diff --git a/hw/intc/nios2_iic.c b/hw/intc/nios2_iic.c index 1a5df8c89a..86d088f9b5 100644 --- a/hw/intc/nios2_iic.c +++ b/hw/intc/nios2_iic.c @@ -80,7 +80,7 @@ static void altera_iic_class_init(ObjectClass *klass, void *data) } static TypeInfo altera_iic_info = { - .name = "altera,iic", + .name = TYPE_ALTERA_IIC, .parent = TYPE_SYS_BUS_DEVICE, .instance_size = sizeof(AlteraIIC), .instance_init = altera_iic_init, -- cgit v1.2.3