Skip to content

Commit

Permalink
hw/i2c/npcm7xx_smbus: Simplify npcm7xx_smbus_init()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
philmd authored and pm215 committed Mar 5, 2021
1 parent 519183d commit 5dfbfef
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion hw/i2c/npcm7xx_smbus.c
Expand Up @@ -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 = {
Expand Down

0 comments on commit 5dfbfef

Please sign in to comment.