sb/intel/i82801ix/sata.c: Use `probe_resource`

It is impossible for `find_resource` to return NULL, it dies instead.

Change-Id: If8e26f768383e741100e3690322db3dabeec1922
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43679
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Angel Pons 2020-07-21 20:29:46 +02:00
parent 7777e1c30b
commit 25a0b0ac5e
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ static void sata_enable_ahci_mmap(struct device *const dev, const u8 port_map,
struct resource *res;
/* Initialize AHCI memory-mapped space */
res = find_resource(dev, PCI_BASE_ADDRESS_5);
res = probe_resource(dev, PCI_BASE_ADDRESS_5);
if (!res)
return;