summary refs log tree commit diff stats
path: root/hw/i2c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-02-28 23:48:13 +0100
committerPeter Maydell <peter.maydell@linaro.org>2021-03-05 15:17:34 +0000
commit5dfbfefaada495b9a65382d64f06325fd802c717 (patch)
treef7c59c307dc9fb201c8be1e6429f410f439f6426 /hw/i2c
parent519183d3fee58e52f7b51cf146c9dc9edc565059 (diff)
downloadfocaccia-qemu-5dfbfefaada495b9a65382d64f06325fd802c717.tar.gz
focaccia-qemu-5dfbfefaada495b9a65382d64f06325fd802c717.zip
hw/i2c/npcm7xx_smbus: Simplify npcm7xx_smbus_init()
The STATUS register will be reset to IDLE in
cnpcm7xx_smbus_enter_reset(), no need to preset
it in instance_init().

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Hao Wu <wuhaotsh@google.com>
Message-id: 20210228224813.312532-1-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/i2c')
-rw-r--r--hw/i2c/npcm7xx_smbus.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/i2c/npcm7xx_smbus.c b/hw/i2c/npcm7xx_smbus.c
index 6b2f9e1aaa..e7e0ba66fe 100644
--- a/hw/i2c/npcm7xx_smbus.c
+++ b/hw/i2c/npcm7xx_smbus.c
@@ -1040,7 +1040,6 @@ static void npcm7xx_smbus_init(Object *obj)
     sysbus_init_mmio(sbd, &s->iomem);
 
     s->bus = i2c_init_bus(DEVICE(s), "i2c-bus");
-    s->status = NPCM7XX_SMBUS_STATUS_IDLE;
 }
 
 static const VMStateDescription vmstate_npcm7xx_smbus = {