diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2020-09-02 18:42:55 -0400 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-09-09 13:20:22 -0400 |
commit | 5182f1759320496ce091d3ae5b140088fe528864 (patch) | |
tree | 7bb5938434eb2e57d7d4a154c7bf5222a1ab8fac /hw/ppc | |
parent | 50cd7d54db67089fde876d1f01e6b8e731b7bc2d (diff) |
rs6000_mc: Rename RS6000MC_DEVICE to RS6000MC
Make the type checking macro name consistent with the TYPE_*
constant.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Hervé Poussineau <hpoussin@reactos.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200902224311.1321159-48-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/ppc')
-rw-r--r-- | hw/ppc/rs6000_mc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ppc/rs6000_mc.c b/hw/ppc/rs6000_mc.c index 56e96010b8..8611ffa96d 100644 --- a/hw/ppc/rs6000_mc.c +++ b/hw/ppc/rs6000_mc.c @@ -30,7 +30,7 @@ #define TYPE_RS6000MC "rs6000-mc" typedef struct RS6000MCState RS6000MCState; -DECLARE_INSTANCE_CHECKER(RS6000MCState, RS6000MC_DEVICE, +DECLARE_INSTANCE_CHECKER(RS6000MCState, RS6000MC, TYPE_RS6000MC) struct RS6000MCState { @@ -143,7 +143,7 @@ static const MemoryRegionPortio rs6000mc_port_list[] = { static void rs6000mc_realize(DeviceState *dev, Error **errp) { - RS6000MCState *s = RS6000MC_DEVICE(dev); + RS6000MCState *s = RS6000MC(dev); int socket = 0; unsigned int ram_size = s->ram_size / MiB; Error *local_err = NULL; |