nb/intel: Replace bad uses of `find_resource`
commit536d36a7480c70acefb45c7f31db29489f4776e8
authorAngel Pons <th3fanbus@gmail.com>
Wed, 3 Nov 2021 12:13:00 +0000 (3 13:13 +0100)
committerFelix Held <felix-coreboot@felixheld.de>
Thu, 4 Nov 2021 17:32:36 +0000 (4 17:32 +0000)
treeee077a270c53216864d3e6e7bfc9813283b09545
parentf32ae10f0d62e646cc196f8eb2bb841f60cbe9d6
nb/intel: Replace bad uses of `find_resource`

The `find_resource` function will never return null (will die instead).
In cases where the existing code already accounts for null pointers, it
is better to use `probe_resource` instead, which returns a null pointer
instead of dying.

Change-Id: I617fea8a09049e9a87130640835ea6c3e2faec60
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58906
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
src/northbridge/intel/gm45/gma.c
src/northbridge/intel/haswell/gma.c
src/northbridge/intel/haswell/minihd.c
src/northbridge/intel/ironlake/gma.c
src/northbridge/intel/sandybridge/gma.c