diff options
author | Philippe Mathieu-Daudé | 2019-05-05 17:28:37 +0200 |
---|---|---|
committer | David Gibson | 2019-05-29 03:39:44 +0200 |
commit | c50be9e1ec705512c622366f80861436eafacffa (patch) | |
tree | 4a781f81993caab001355c7c1fd5fe6871d5a871 /hw/ppc/prep.c | |
parent | target/ppc/kvm: Fix trace typo (diff) | |
download | qemu-c50be9e1ec705512c622366f80861436eafacffa.tar.gz qemu-c50be9e1ec705512c622366f80861436eafacffa.tar.xz qemu-c50be9e1ec705512c622366f80861436eafacffa.zip |
hw/ppc/prep: use TYPE_MC146818_RTC instead of a hardcoded string
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190505152839.18650-2-philmd@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc/prep.c')
-rw-r--r-- | hw/ppc/prep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index b7f459d475..ebee321148 100644 --- a/hw/ppc/prep.c +++ b/hw/ppc/prep.c @@ -601,7 +601,7 @@ static int prep_set_cmos_checksum(DeviceState *dev, void *opaque) uint16_t checksum = *(uint16_t *)opaque; ISADevice *rtc; - if (object_dynamic_cast(OBJECT(dev), "mc146818rtc")) { + if (object_dynamic_cast(OBJECT(dev), TYPE_MC146818_RTC)) { rtc = ISA_DEVICE(dev); rtc_set_memory(rtc, 0x2e, checksum & 0xff); rtc_set_memory(rtc, 0x3e, checksum & 0xff); |