diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2016-07-24 09:26:55 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-07-27 17:56:20 +1000 |
commit | f4704f5592b00dd465711cc374f478bdf8d31d86 (patch) | |
tree | 956213ff7aff638857b813999dc15c87d09c87e3 /hw/centaur.c | |
parent | 46c006f730df0b20500fde8dd495b94711eaa8ee (diff) | |
download | skiboot-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>
Diffstat (limited to 'hw/centaur.c')
-rw-r--r-- | hw/centaur.c | 1 |
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(¢aur->lock); + list_head_init(¢aur->i2cms); if (!centaur_check_id(centaur)) return false; |