]> Git Repo - qemu.git/blobdiff - hw/ds1338.c
usb-redir: Get rid of local shadow copy of packet headers
[qemu.git] / hw / ds1338.c
index b137e133790e41e1a25fbdcc8f1e383665f336db..d590d9c00780bea47b3f60f227c9b3dcd71be46c 100644 (file)
@@ -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)
This page took 0.02703 seconds and 4 git commands to generate.