aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-24 09:26:55 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-07-27 17:56:20 +1000
commitf4704f5592b00dd465711cc374f478bdf8d31d86 (patch)
tree956213ff7aff638857b813999dc15c87d09c87e3
parent46c006f730df0b20500fde8dd495b94711eaa8ee (diff)
downloadskiboot-f4704f5592b00dd465711cc374f478bdf8d31d86.zip
skiboot-f4704f5592b00dd465711cc374f478bdf8d31d86.tar.gz
skiboot-f4704f5592b00dd465711cc374f478bdf8d31d86.tar.bz2
centaur: Initialize i2c master list
It was left uninitialized which could cause issues later on Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--hw/centaur.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/centaur.c b/hw/centaur.c
index 5e594c1..1f2b9c4 100644
--- a/hw/centaur.c
+++ b/hw/centaur.c
@@ -426,6 +426,7 @@ static bool centaur_add(uint32_t part_id, uint32_t mchip, uint32_t meng,
centaur->fsi_master_port = mport;
centaur->fsi_master_engine = meng ? MFSI_cMFSI1 : MFSI_cMFSI0;
init_lock(&centaur->lock);
+ list_head_init(&centaur->i2cms);
if (!centaur_check_id(centaur))
return false;