summaryrefslogtreecommitdiffstats
path: root/hw/i2c/imx_i2c.c
diff options
context:
space:
mode:
authorAlastair D'Silva2017-01-20 12:15:06 +0100
committerPeter Maydell2017-01-20 12:15:06 +0100
commit643bb6fca7102e49c156d4ba210d2ec3c160b844 (patch)
tree07b181907e09c5bbc52f567859adc9011d6c5832 /hw/i2c/imx_i2c.c
parentMerge remote-tracking branch 'remotes/artyom/tags/pull-sun4v-20170118' into s... (diff)
downloadqemu-643bb6fca7102e49c156d4ba210d2ec3c160b844.tar.gz
qemu-643bb6fca7102e49c156d4ba210d2ec3c160b844.tar.xz
qemu-643bb6fca7102e49c156d4ba210d2ec3c160b844.zip
arm: Uniquely name imx25 I2C buses.
The imx25 chip provides 3 i2c buses, but they have all been named "i2c", which makes it difficult to predict which bus a device will be connected to when specified on the command line. This patch addresses the issue by naming the buses uniquely: i2c-bus.0 i2c-bus.1 i2c-bus.2 Signed-off-by: Alastair D'Silva <alastair@d-silva.org> Message-id: 20170105043430.3176-2-alastair@au1.ibm.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/i2c/imx_i2c.c')
-rw-r--r--hw/i2c/imx_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i2c/imx_i2c.c b/hw/i2c/imx_i2c.c
index 37e5a62ce7..6c81b98ebd 100644
--- a/hw/i2c/imx_i2c.c
+++ b/hw/i2c/imx_i2c.c
@@ -310,7 +310,7 @@ static void imx_i2c_realize(DeviceState *dev, Error **errp)
IMX_I2C_MEM_SIZE);
sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->iomem);
sysbus_init_irq(SYS_BUS_DEVICE(dev), &s->irq);
- s->bus = i2c_init_bus(DEVICE(dev), "i2c");
+ s->bus = i2c_init_bus(DEVICE(dev), NULL);
}
static void imx_i2c_class_init(ObjectClass *klass, void *data)