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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user