soc/intel/elkhartlake: Make use of is_devfn_enabled()
commit5b81b8890221d5929d742ffd2b25b55e0ade3185
authorSubrata Banik <subrata.banik@intel.com>
Tue, 8 Jun 2021 22:29:11 +0000 (9 03:59 +0530)
committerSubrata Banik <subrata.banik@intel.com>
Wed, 16 Jun 2021 03:49:28 +0000 (16 03:49 +0000)
tree6b8e4dac092075d2597efb07b879ca2e7a1e2662
parent49a21093246237490d4ec08a531a104a0b6f4a7e
soc/intel/elkhartlake: Make use of is_devfn_enabled()

1. Replace all pcidev_path_on_root() and is_dev_enabled() functions
combination with is_devfn_enabled().
2. Remove unused local variable of device structure type (struct device *).
3. Replace pcidev_path_on_root() and dev->enabled check with is_devfn_enabled()
call.

TEST=Able to build and boot without any regression seen on EHL.

Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Change-Id: Iadf9145a11f27ff0e182f146b6fe5a01e6cf3ed8
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55331
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lean Sheng Tan <lean.sheng.tan@intel.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
src/soc/intel/elkhartlake/acpi.c
src/soc/intel/elkhartlake/fsp_params.c
src/soc/intel/elkhartlake/romstage/fsp_params.c