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:
parent
7777e1c30b
commit
25a0b0ac5e
|
@ -23,7 +23,7 @@ static void sata_enable_ahci_mmap(struct device *const dev, const u8 port_map,
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
|
|
||||||
/* Initialize AHCI memory-mapped space */
|
/* Initialize AHCI memory-mapped space */
|
||||||
res = find_resource(dev, PCI_BASE_ADDRESS_5);
|
res = probe_resource(dev, PCI_BASE_ADDRESS_5);
|
||||||
if (!res)
|
if (!res)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue