X-Git-Url: https://repo.jachan.dev/qemu.git/blobdiff_plain/f0c4d3ebc31969457850a710c25e663880072ed7..104981d52b63dc3d68f39d4442881c667f44bbb9:/hw/ds1338.c diff --git a/hw/ds1338.c b/hw/ds1338.c index b137e13379..d590d9c007 100644 --- a/hw/ds1338.c +++ b/hw/ds1338.c @@ -100,6 +100,7 @@ static int ds1338_send(I2CSlave *i2c, uint8_t data) break; case 5: s->now.tm_mon = from_bcd(data & 0x1f) - 1; + break; case 6: s->now.tm_year = from_bcd(data) + 100; break; @@ -135,9 +136,9 @@ static TypeInfo ds1338_info = { .class_init = ds1338_class_init, }; -static void ds1338_register_devices(void) +static void ds1338_register_types(void) { type_register_static(&ds1338_info); } -device_init(ds1338_register_devices) +type_init(ds1338_register_types)