diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2016-06-21 14:08:35 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-06-21 16:31:23 +1000 |
commit | 5f25590fd430265e69190aaa50f019e8dadad293 (patch) | |
tree | 43efdfa458efd75ed4bf8502483a8cc650584508 /hw | |
parent | 0f23e5bd7987e9cedeadbad19e812b125dbd2cf5 (diff) | |
download | skiboot-5f25590fd430265e69190aaa50f019e8dadad293.zip skiboot-5f25590fd430265e69190aaa50f019e8dadad293.tar.gz skiboot-5f25590fd430265e69190aaa50f019e8dadad293.tar.bz2 |
platforms/ibm-fsp: Fix condition for valid slot
In firenze_pci_slot_init(), i2c_alloc_req() can return NULL though
it's very rare. We don't cover the case. If NULL I2C request returned
from the function, the I2C dependent power management won't be used.
This checks if i2c_alloc_req() returns valid I2C request or not.
Suggested-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions