diff options
author | Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> | 2018-07-04 15:09:23 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-07-04 18:40:54 -0500 |
commit | d6de8fe73b88f92d6a222905e1974ec73777d5e5 (patch) | |
tree | fbd3f2e6b3282f15fc66cb850d1adb1fd3eebab9 /hw/occ.c | |
parent | e21159bf9683a3d61478c4929f6706aa0efa35af (diff) | |
download | skiboot-d6de8fe73b88f92d6a222905e1974ec73777d5e5.zip skiboot-d6de8fe73b88f92d6a222905e1974ec73777d5e5.tar.gz skiboot-d6de8fe73b88f92d6a222905e1974ec73777d5e5.tar.bz2 |
occ: sensors: Fix the size of the phandle array 'sensors' in DT
Fixes: 99505c03f493 ("sensor-groups: occ: Add support to disable/enable sensor group")
Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/occ.c')
-rw-r--r-- | hw/occ.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1688,11 +1688,11 @@ void occ_add_sensor_groups(struct dt_node *sg, u32 *phandles, u32 *ptype, _phandles[pcount++] = phandles[k]; if (pcount) dt_add_property(node, "sensors", _phandles, - pcount); + pcount * sizeof(u32)); free(_phandles); } else { dt_add_property(node, "sensors", phandles, - nr_phandles); + nr_phandles * sizeof(u32)); } dt_add_property_cells(node, "ops", groups[j].ops); } |