diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2022-12-15 15:26:28 +0100 |
---|---|---|
committer | Fred Reitberger <reitbergerfred@gmail.com> | 2022-12-16 15:32:02 +0000 |
commit | d832bda32bd54b65c41db4ae945fb6a993ca055b (patch) | |
tree | 2c8ce3b99421a6a5d4af3f93abfdd023601be6cb /src/console/die.c | |
parent | f3c107eb01cae5347b487d75462e36a455f9ec48 (diff) |
soc/amd/common/block/i2c: don't call die() when MMIO address is NULL
There's no need to call die() in the case that the MMIO address of the
I2C controller is NULL, so handle this case by returning a failure
instead.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I12c143916ad551c56cc4ff75ae23754018817505
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70827
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/console/die.c')
0 files changed, 0 insertions, 0 deletions